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

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

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