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

export class UpsertParentIndicesDto {
  @IsOptional()
  @IsNumber()
  @Min(0.5)
  @Max(8)
  poids?: number;

  @IsOptional()
  @IsNumber()
  @Min(30)
  @Max(70)
  taille?: number;

  @IsOptional()
  @IsNumber()
  @Min(20)
  @Max(45)
  perimCranien?: number;

  @IsOptional()
  @IsDateString()
  dateNaissance?: string;
}
