import { IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';

export class CreateRecipeIngredientDto {
  @IsInt()
  productId!: number;

  @IsNumber()
  @Min(0)
  quantity!: number;

  @IsString()
  unit!: string;

  @IsOptional()
  @IsString()
  note?: string;
}
