import { BooleanTransform } from '@humand-packages/common';
import { Expose } from 'class-transformer';
import { IsBoolean, IsDefined, IsNumber } from 'class-validator';

export class TimeTrackingPolicyHourCategoryForCreationVC {
    @IsDefined()
    @IsNumber()
    @Expose()
    hourCategoryId!: number;

    @IsDefined()
    @IsBoolean()
    @Expose()
    @BooleanTransform(false)
    requiresApproval!: boolean;
}
