From eeaf8daf4a4a6e360ae267963222695a6b904b81 Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Thu, 27 Nov 2025 09:28:11 -0500 Subject: [PATCH] fix(schema): small fix to userModuleAccess model --- docs/swagger/swagger-spec.json | 11 ++++++++++- prisma/schema.prisma | 5 ++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/swagger/swagger-spec.json b/docs/swagger/swagger-spec.json index 5ac9abe..640a199 100644 --- a/docs/swagger/swagger-spec.json +++ b/docs/swagger/swagger-spec.json @@ -466,7 +466,16 @@ "/employees/profile": { "get": { "operationId": "EmployeesController_findOneProfile", - "parameters": [], + "parameters": [ + { + "name": "employee_email", + "required": true, + "in": "query", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "" diff --git a/prisma/schema.prisma b/prisma/schema.prisma index c9670e3..1abb05f 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -40,8 +40,8 @@ model userModuleAccess { 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_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 - blocked Boolean @default(false) + personal_profile Boolean @default(false) //wich governs profile details, preferances and dashboard access + dashboard Boolean @default(false) //wich allows access to the main page of the app @@map("user_module_access") } @@ -249,7 +249,6 @@ model Expenses { archive ExpensesArchive[] @relation("ExpensesToArchive") - @@unique([timesheet_id, date, amount, mileage], name: "unique_ts_id_date_amount_mileage") @@map("expenses") }