feat(schema): added columns and enum for overtime management. Also added the respective columns in the DB itself. Also added ticket and ticket_management in user_module_access in the db/schema
This commit is contained in:
parent
d2c7f262a4
commit
e178c7bd10
|
|
@ -49,6 +49,8 @@ model userModuleAccess {
|
|||
personal_profile Boolean @default(true)
|
||||
dashboard Boolean @default(true)
|
||||
chatbot Boolean @default(false)
|
||||
ticket Boolean @default(false)
|
||||
ticket_management Boolean @default(false)
|
||||
user Users @relation("UserModuleAccess", fields: [user_id], references: [id])
|
||||
|
||||
@@map("user_module_access")
|
||||
|
|
@ -59,13 +61,13 @@ model Employees {
|
|||
user_id String @unique @db.Uuid
|
||||
external_payroll_id Int
|
||||
company_code Int
|
||||
daily_expected_hours Int
|
||||
daily_expected_hours Int @default(24)
|
||||
first_work_day DateTime @db.Date
|
||||
last_work_day DateTime? @db.Date
|
||||
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
|
||||
applicable_overtime ApplicableOvertime[] @default([WEEKLY])
|
||||
schedule_preset_id Int?
|
||||
schedule_preset SchedulePresets? @relation("EmployeesSchedulePreset", fields: [schedule_preset_id], references: [id])
|
||||
supervisor Employees? @relation("EmployeeSupervisor", fields: [supervisor_id], references: [id])
|
||||
|
|
@ -383,3 +385,9 @@ enum Weekday {
|
|||
FRI
|
||||
SAT
|
||||
}
|
||||
|
||||
enum ApplicableOvertime {
|
||||
DAILY
|
||||
WEEKLY
|
||||
PAYPERIOD
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user