import { IsInt, Min } from 'class-validator';
import { TransformNumber } from '../../../shared/decorators/class-transformer/transform-number.decorator';

export class CreateFoodDto {
  @TransformNumber()
  @IsInt()
  @Min(1)
  id: number;

  @TransformNumber()
  @IsInt()
  @Min(1)
  quantity: number;
}
