fix(schema): small fix to userModuleAccess model

This commit is contained in:
Matthieu Haineault 2025-11-27 09:28:11 -05:00
parent 58c550103f
commit eeaf8daf4a
2 changed files with 12 additions and 4 deletions

View File

@ -466,7 +466,16 @@
"/employees/profile": { "/employees/profile": {
"get": { "get": {
"operationId": "EmployeesController_findOneProfile", "operationId": "EmployeesController_findOneProfile",
"parameters": [], "parameters": [
{
"name": "employee_email",
"required": true,
"in": "query",
"schema": {
"type": "string"
}
}
],
"responses": { "responses": {
"200": { "200": {
"description": "" "description": ""

View File

@ -40,8 +40,8 @@ model userModuleAccess {
timesheets_approval Boolean @default(false) //wich allows the approbation of timesheets by a supervisor or above timesheets_approval Boolean @default(false) //wich allows the approbation of timesheets by a supervisor or above
employee_list Boolean @default(false) //wich shows the lists of employee to show names, emails, titles and profile picture employee_list Boolean @default(false) //wich shows the lists of employee to show names, emails, titles and profile picture
employee_management Boolean @default(false) //wich offers CRUD for employees, schedule_presets and manage module access employee_management Boolean @default(false) //wich offers CRUD for employees, schedule_presets and manage module access
personnal_profile Boolean @default(false) //wich governs profile details, preferances and dashboard access personal_profile Boolean @default(false) //wich governs profile details, preferances and dashboard access
blocked Boolean @default(false) dashboard Boolean @default(false) //wich allows access to the main page of the app
@@map("user_module_access") @@map("user_module_access")
} }
@ -249,7 +249,6 @@ model Expenses {
archive ExpensesArchive[] @relation("ExpensesToArchive") archive ExpensesArchive[] @relation("ExpensesToArchive")
@@unique([timesheet_id, date, amount, mileage], name: "unique_ts_id_date_amount_mileage")
@@map("expenses") @@map("expenses")
} }