import {
  IsNotEmpty,
  IsString,
  IsOptional,
  IsNumber,
  Min,
  Max,
} from "class-validator"
import { ApiProperty } from "@nestjs/swagger"

export class CreateVehicleTypeDto {
  @ApiProperty({ description: "Name of the vehicle type" })
  @IsNotEmpty()
  @IsString()
  name: string

  @ApiProperty({
    description: "Status of the vehicle type (1 for active, 0 for inactive)",
    default: 1,
  })
  @IsOptional()
  @IsNumber()
  @Min(0)
  @Max(1)
  status?: number
}
