Added new design to modals
This commit is contained in:
BIN
prisma/dev.db
BIN
prisma/dev.db
Binary file not shown.
@@ -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])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user