import { ApiProperty } from "@nestjs/swagger"
import { IsInt, Min } from "class-validator"

export class AssignPricingCityByDispatcherDto {
  @ApiProperty({
    example: 1,
    description: "Team member ID of the dispatcher",
  })
  @IsInt()
  @Min(1)
  dispatcher_id: number

  @ApiProperty({
    example: 10,
    description:
      "City ID to assign as pricing city for every customer linked to this dispatcher",
  })
  @IsInt()
  @Min(1)
  pricing_city_id: number
}
