Added new design to modals

This commit is contained in:
2026-02-08 14:16:55 +01:00
parent ccff904464
commit ff6201a42c
15 changed files with 1134 additions and 435 deletions

View File

@@ -21,6 +21,7 @@ model User {
updatedAt DateTime @updatedAt
conversations ConversationParticipant[]
sentMessages Message[]
notifications Notification[]
}
model Role {
@@ -188,3 +189,19 @@ model AdherentOption {
@@unique([type, value])
@@index([type])
}
model Notification {
id String @id @default(cuid())
userId String // Utilisateur destinataire de la notification
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
type String // "message", "trajet_created", "trajet_cancelled", "trajet_completed"
title String // Titre de la notification
message String // Message de la notification
read Boolean @default(false) // Indique si la notification a été lue
link String? // Lien optionnel vers la ressource (ex: /dashboard/messagerie, /dashboard/calendrier)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@index([userId, read])
@@index([userId, createdAt])
}