import { IsBoolean, IsInt, IsOptional, IsString, MaxLength } from "class-validator"; export class ShiftDto { @IsInt() @IsOptional() id?: number; @IsInt() timesheet_id: number; @IsString() type: string; @IsString() date: string; @IsString() start_time: string; @IsString() end_time: string; @IsBoolean() is_approved: boolean; @IsBoolean() is_remote: boolean; @IsOptional() @IsString() @MaxLength(280) comment?: string; } export type ShiftType = 'REGULAR' | 'EVENING' | 'EMERGENCY' | 'VACATION' | 'HOLIDAY' | 'SICK';