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

export class UpsertNutritionDto {
  @IsOptional()
  @IsNumber()
  @Min(0)
  calories?: number;

  @IsOptional()
  @IsNumber()
  @Min(0)
  protein?: number;

  @IsOptional()
  @IsNumber()
  @Min(0)
  fat?: number;

  @IsOptional()
  @IsNumber()
  @Min(0)
  carbohydrates?: number;

  @IsOptional()
  @IsNumber()
  @Min(0)
  salt?: number;

  @IsOptional()
  @IsNumber()
  @Min(0)
  sugar?: number;

  @IsOptional()
  @IsNumber()
  @Min(0)
  fiber?: number;
}
