import { ApiProperty } from "@nestjs/swagger"
import { Type } from "class-transformer"
import { IsDate, IsNumber, IsUUID } from "class-validator"

export class FuelExpenseDto {
    @ApiProperty({ format: 'uuid' })
    @IsUUID()
    id_boiler: string

    @ApiProperty()
    @IsNumber()
    id_fuel: number

    @ApiProperty({ type: String, format: 'date-time' })
    @Type(() => Date)
    @IsDate()
    date: Date

    @ApiProperty()
    @IsNumber()
    value: number
}