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

export class UpsertBabyIndicesDto {
  @IsOptional()
  @IsDateString()
  dpa?: string;
}

export class UpsertBabyTrimesterDto {
  @IsOptional()
  @IsDateString()
  date?: string;

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

  @IsOptional()
  @IsNumber()
  @Min(0.1)
  @Max(15)
  poids?: number;

  @IsOptional()
  @IsNumber()
  @Min(0.1)
  @Max(60)
  taille?: number;

  @IsOptional()
  @IsNumber()
  @Min(1)
  @Max(50)
  perimCranien?: number;
}
