import { IsString, IsEnum, IsInt, IsOptional, Min } from 'class-validator';
import { VehicleType, VehicleStatus } from '@prisma/client';

export class CreateVehicleDto {
  @IsString()
  name: string;

  @IsEnum(VehicleType)
  type: VehicleType;

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

  @IsInt()
  @Min(1)
  seatCapacity: number;

  @IsEnum(VehicleStatus)
  @IsOptional()
  status?: VehicleStatus;

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

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