Merge branch 'main' of https://git.targo.ca/Targo/targo_backend
This commit is contained in:
commit
9079cfceed
|
|
@ -50,6 +50,7 @@ model Employees {
|
||||||
supervisor_id Int?
|
supervisor_id Int?
|
||||||
job_title String?
|
job_title String?
|
||||||
is_supervisor Boolean @default(false)
|
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_id Int?
|
||||||
schedule_preset SchedulePresets? @relation("EmployeesSchedulePreset", fields: [schedule_preset_id], references: [id])
|
schedule_preset SchedulePresets? @relation("EmployeesSchedulePreset", fields: [schedule_preset_id], references: [id])
|
||||||
supervisor Employees? @relation("EmployeeSupervisor", fields: [supervisor_id], references: [id])
|
supervisor Employees? @relation("EmployeeSupervisor", fields: [supervisor_id], references: [id])
|
||||||
|
|
@ -103,6 +104,7 @@ model Timesheets {
|
||||||
employee_id Int
|
employee_id Int
|
||||||
is_approved Boolean @default(false)
|
is_approved Boolean @default(false)
|
||||||
start_date DateTime @db.Date
|
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")
|
expense Expenses[] @relation("ExpensesTimesheet")
|
||||||
shift Shifts[] @relation("ShiftTimesheet")
|
shift Shifts[] @relation("ShiftTimesheet")
|
||||||
employee Employees @relation("TimesheetEmployee", fields: [employee_id], references: [id])
|
employee Employees @relation("TimesheetEmployee", fields: [employee_id], references: [id])
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ async function bootstrap() {
|
||||||
|
|
||||||
// Enable CORS
|
// Enable CORS
|
||||||
app.enableCors({
|
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,
|
credentials: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user