@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "30.65.5",
3
+ "version": "30.65.6",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -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
  }