import { IsString, IsEnum, IsNumber, IsOptional, IsUUID } from 'class-validator';
import { VehicleType, FuelType, VehicleStatus } from '../entities/vehicle.entity';

export class CreateVehicleDto {
  @IsString()
  plateNumber!: string;

  @IsEnum(VehicleType)
  vehicleType!: VehicleType;

  @IsString()
  manufacturer!: string;

  @IsString()
  model!: string;

  @IsNumber()
  year!: number;

  @IsEnum(FuelType)
  fuelType!: FuelType;

  @IsNumber()
  capacity!: number;

  @IsEnum(VehicleStatus)
  status!: VehicleStatus;

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

  @IsOptional()
  @IsUUID()
  assignedDriverId?: string;

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