import { IsNumber, IsOptional, IsString, IsUUID, Min } from "class-validator"; /** * Generic reservation โ€” product+quantity, no serial selected yet. The * first step of the Master Prompt ยง6.8 flow (reserve โ†’ later pick the * specific serialized unit โ†’ install). */ export class CreateReservationDto { @IsUUID() warehouseId!: string; @IsUUID() productId!: string; @IsNumber() @Min(0.001) quantity!: number; @IsOptional() @IsString() referenceType?: string; @IsOptional() @IsUUID() referenceId?: string; @IsOptional() @IsString() notes?: string; }