28 lines
495 B
TypeScript
28 lines
495 B
TypeScript
import { Type } from "class-transformer";
|
|
import { IsDate, IsDateString, IsInt } from "class-validator";
|
|
|
|
export class CreateShiftDto {
|
|
@Type(() => Number)
|
|
@IsInt()
|
|
timesheet_id: number;
|
|
|
|
@Type(() => Number)
|
|
@IsInt()
|
|
shift_code_id: number;
|
|
|
|
|
|
@IsDateString()
|
|
@Type(() => Date)
|
|
@IsDate()
|
|
date: Date;
|
|
|
|
@IsDateString()
|
|
@Type(() => Date)
|
|
@IsDate()
|
|
start_time: Date;
|
|
|
|
@IsDateString()
|
|
@Type(() => Date)
|
|
@IsDate()
|
|
end_time: Date;
|
|
} |