This commit is contained in:
Nic D 2026-01-14 16:06:59 -05:00
commit 9079cfceed
2 changed files with 9 additions and 7 deletions

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,6 +104,7 @@ 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])

View File

@ -56,7 +56,7 @@ async function bootstrap() {
// Enable CORS
app.enableCors({
origin: ['http://10.100.251.2:9011', 'http://10.100.251.2:9012', 'http://10.100.251.2:9013', 'http://localhost:9000', 'https://app.targo.ca', 'https://staging.app.targo.ca'],
origin: ['http://10.100.251.2:9011', 'http://10.100.251.2:9012', 'http://10.100.251.2:9013', 'http://localhost:9000', 'https://app.targo.ca', 'https://app2.targo.ca','https://staging.app.targo.ca'],
credentials: true,
});