mirror of
https://github.com/LucasVbr/meeting-app.git
synced 2026-05-13 17:21:53 +00:00
feat(UserMatch): Logique des matchs et notifications
Affichage d'un modal lorsqu'une notification de match n'est pas consulté
This commit is contained in:
@@ -61,6 +61,8 @@ model User {
|
||||
Match Match[] @relation(fields: [MatchID], references: [id])
|
||||
|
||||
Notification Notification[]
|
||||
|
||||
NotificationMatchedUser Notification[] @relation("matchedUser")
|
||||
}
|
||||
|
||||
model Notification {
|
||||
@@ -71,6 +73,9 @@ model Notification {
|
||||
|
||||
UserID String @db.ObjectId
|
||||
User User @relation(fields: [UserID], references: [id])
|
||||
|
||||
MatchedUserID String? @db.ObjectId
|
||||
MatchedUser User? @relation("matchedUser", fields: [MatchedUserID], references: [id])
|
||||
}
|
||||
|
||||
model Match {
|
||||
|
||||
Reference in New Issue
Block a user