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

export class LoadCargoDto {
  @IsNumber()
  @Min(0.001)
  quantity!: number;

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

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

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