import { IsArray, IsNotEmpty, IsNumber } from "class-validator"
import { ApiProperty } from "@nestjs/swagger"

export class AssignProjectsDto {
  @ApiProperty({
    description: "Array of project IDs to assign to the employee",
    example: [1, 2, 3],
    type: [Number],
  })
  @IsArray()
  @IsNotEmpty()
  @IsNumber({}, { each: true })
  project_ids: number[]
}
