import { IsDateString, IsInt, IsOptional, IsPositive, Min } from 'class-validator';

export class CreateMealPlanEntryDto {
  @IsDateString()
  date: string; // YYYY-MM-DD

  @IsInt()
  @IsPositive()
  recipeId: number;

  @IsOptional()
  @IsInt()
  @Min(1)
  servings?: number;
}
