import { Type } from "class-transformer";
import { IsInt, IsString } from "class-validator";
import { ApplicableOvertime } from "prisma/postgres/generated/prisma/client/postgres/enums";

export class Contract {
    @IsInt() employee_id: number;
    @IsInt() daily_expected_hours: number;
    @IsString() applicable_overtime: ApplicableOvertime;
    @Type(() => Number) phone_allocation: number;
    @Type(() => Number) on_call_allocation: number;
    @Type(() => Number) weekend_on_call_allocation: number;
}