feat: 添加推送通知功能,支持Web Push订阅和发送

This commit is contained in:
2025-11-28 22:35:45 +08:00
parent a4bb8e984f
commit 35a948c515
13 changed files with 338 additions and 2 deletions
+11
View File
@@ -136,4 +136,15 @@ model Nssm {
@@index([objectName])
@@map("nssm")
}
model PushSubscription {
id String @id @default(cuid())
endpoint String @unique
p256dh String
auth String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@map("push_subscriptions")
}