import { IsString, IsEnum, IsOptional, IsUUID } from 'class-validator';
import { Department } from '@prisma/client';

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

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

  @IsEnum(Department)
  @IsOptional()
  department?: Department;

  @IsUUID()
  @IsOptional()
  userId?: string;
}
