Added SSE function and add readAt for notification
This commit is contained in:
@@ -176,6 +176,7 @@ model Notification {
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([userId])
|
||||
@@index([userId, readAt])
|
||||
@@index([readAt])
|
||||
@@map("notification")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user