import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsNumber, IsString, Min } from 'class-validator';

export class RegisterQueueDto {
  @ApiProperty({ name: 'item_id', required: true })
  @IsString()
  @IsNotEmpty()
  item_id: string;

  @ApiProperty({ name: 'ticket_id', required: true })
  @IsString()
  @IsNotEmpty()
  ticket_id: string;

  @ApiProperty({
    type: Number,
    required: true,
    example: 1,
  })
  @IsNumber()
  @Min(1)
  @IsNotEmpty()
  qty: number;
}
