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:
Laurian-Dufrechou
2023-05-16 00:59:05 +02:00
parent 9b4676f769
commit dbb60bd9f1
9 changed files with 4045 additions and 3801 deletions
+5
View File
@@ -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 {