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
@@ -0,0 +1,11 @@
/*
Warnings:
- A unique constraint covering the columns `[userId,nonce]` on the table `Notification` will be added. If there are existing duplicate values, this will fail.
*/
-- DropIndex
DROP INDEX "Notification_nonce_key";
-- CreateIndex
CREATE UNIQUE INDEX "Notification_userId_nonce_key" ON "Notification"("userId", "nonce");