fix: allow notification nonce reuse per user

This commit is contained in:
Huskydog9988
2025-05-14 15:40:55 -04:00
parent dad2161754
commit a101ff07c4
2 changed files with 14 additions and 1 deletions

View File

@ -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])
}