mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-14 08:41:15 +10:00
fix: allow notification nonce reuse per user
This commit is contained in:
@ -24,7 +24,7 @@ model User {
|
||||
model Notification {
|
||||
id String @id @default(uuid())
|
||||
|
||||
nonce String? @unique
|
||||
nonce String?
|
||||
|
||||
userId String
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
@ -35,4 +35,6 @@ model Notification {
|
||||
actions String[]
|
||||
|
||||
read Boolean @default(false)
|
||||
|
||||
@@unique([userId, nonce])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user