feat(banking): added columns to table Employees and timesheets for future update on banking hour options

This commit is contained in:
Matthieu Haineault 2026-01-14 14:44:41 -05:00
parent e259851b87
commit c294d491d1

View File

@ -50,6 +50,7 @@ model Employees {
supervisor_id Int?
job_title String?
is_supervisor Boolean @default(false)
banked_hour_limit Int @default(0) //will need to be implemented in the future
schedule_preset_id Int?
schedule_preset SchedulePresets? @relation("EmployeesSchedulePreset", fields: [schedule_preset_id], references: [id])
supervisor Employees? @relation("EmployeeSupervisor", fields: [supervisor_id], references: [id])
@ -103,12 +104,12 @@ model Timesheets {
employee_id Int
is_approved Boolean @default(false)
start_date DateTime @db.Date
hours_to_bank Decimal? @db.Decimal(5, 2) //will need to be implemented in the future
expense Expenses[] @relation("ExpensesTimesheet")
shift Shifts[] @relation("ShiftTimesheet")
employee Employees @relation("TimesheetEmployee", fields: [employee_id], references: [id])
archive TimesheetsArchive[] @relation("TimesheetsToArchive")
// @@unique([employee_id, start_date], name: "employee_id_start_date")
@@map("timesheets")
}