@bash-app/bash-common 30.65.5 → 30.65.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisma/schema.prisma +2 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -3747,10 +3747,12 @@ model PushNotificationToken {
|
|
|
3747
3747
|
userId String
|
|
3748
3748
|
token String @unique
|
|
3749
3749
|
platform String // 'ios', 'android', 'web'
|
|
3750
|
+
userAgent String? // Browser/device user agent
|
|
3750
3751
|
isActive Boolean @default(true)
|
|
3751
3752
|
createdAt DateTime @default(now())
|
|
3752
3753
|
updatedAt DateTime @updatedAt
|
|
3753
3754
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
3754
3755
|
|
|
3756
|
+
@@unique([userId, platform])
|
|
3755
3757
|
@@map("push_notification_tokens")
|
|
3756
3758
|
}
|