From e1b63bd61a68ea22f99f25623e7f221f5ad3b523 Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Wed, 15 Oct 2025 16:36:05 -0400 Subject: [PATCH] clean(none): clean slate , removed useless code lines --- prisma/schema.prisma | 5 ----- .../dtos => shared/classes}/timesheet.dto.ts | 12 +++++++++--- src/modules/shared/constants/utils.constant.ts | 1 + 3 files changed, 10 insertions(+), 8 deletions(-) rename src/modules/{timesheets/dtos => shared/classes}/timesheet.dto.ts (89%) create mode 100644 src/modules/shared/constants/utils.constant.ts diff --git a/prisma/schema.prisma b/prisma/schema.prisma index a5e8734..afb3fda 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -184,11 +184,6 @@ model TimesheetsArchive { @@map("timesheets_archive") } - - - - - model SchedulePresets { id Int @id @default(autoincrement()) employee Employees @relation("SchedulePreset", fields: [employee_id], references: [id]) diff --git a/src/modules/timesheets/dtos/timesheet.dto.ts b/src/modules/shared/classes/timesheet.dto.ts similarity index 89% rename from src/modules/timesheets/dtos/timesheet.dto.ts rename to src/modules/shared/classes/timesheet.dto.ts index 22cd1ae..4a3f307 100644 --- a/src/modules/timesheets/dtos/timesheet.dto.ts +++ b/src/modules/shared/classes/timesheet.dto.ts @@ -1,3 +1,9 @@ +export class Session { + user_id: number; + +} + + export class Timesheets { timesheet_id: number; days: TimesheetDay[]; @@ -30,9 +36,9 @@ export class TotalExpenses { } export class Shift { - date: string; - start: string; - end: string; + date: Date; + start_time: Date; + end_time: Date; type: string; is_remote: boolean; is_approved: boolean; diff --git a/src/modules/shared/constants/utils.constant.ts b/src/modules/shared/constants/utils.constant.ts new file mode 100644 index 0000000..271bbbf --- /dev/null +++ b/src/modules/shared/constants/utils.constant.ts @@ -0,0 +1 @@ +export const COMMENT_MAX_LENGTH = 280; \ No newline at end of file