feat: 添加推送通知功能,支持Web Push订阅和发送
This commit is contained in:
@@ -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")
|
||||
}
|
||||
Reference in New Issue
Block a user