@bash-app/bash-common 30.34.0 → 30.35.0

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.34.0",
3
+ "version": "30.35.0",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -1071,6 +1071,20 @@ model User {
1071
1071
  blocksReceived BlockedUser[] @relation("UserBlocksReceived")
1072
1072
  unblocksCreated UnblockedUserHistory[] @relation("UserUnblocksMade")
1073
1073
  unblocksReceived UnblockedUserHistory[] @relation("UserUnblocksReceived")
1074
+
1075
+ preferences UserPreference?
1076
+
1077
+ }
1078
+
1079
+ model UserPreference {
1080
+ id String @id @default(cuid())
1081
+ userId String @unique
1082
+ user User @relation(fields: [userId], references: [id], onDelete: Cascade)
1083
+ privacySettings Json? // Stores privacy settings like hiddenBashIds and hideActivitySection
1084
+ theme String? // For future use - can store theme preferences
1085
+ notifications Json? // For future use - can store notification preferences
1086
+ createdAt DateTime @default(now())
1087
+ updatedAt DateTime @updatedAt
1074
1088
  }
1075
1089
 
1076
1090
  model Contact {