@bash-app/bash-common 29.15.8 → 29.15.9

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": "29.15.8",
3
+ "version": "29.15.9",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -211,7 +211,6 @@ model BashEvent {
211
211
  privacy Privacy @default(Public)
212
212
  tickets Ticket[]
213
213
  reviews Review[]
214
- googleReview GoogleReview[]
215
214
  sponsorships SponsoredEvent[]
216
215
  investments Investment[]
217
216
  capacity Int?
@@ -789,16 +788,19 @@ model Review {
789
788
  }
790
789
 
791
790
  model GoogleReview {
792
- id String @id @default(cuid())
793
- bashEventId String
794
- bashEvent BashEvent @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
795
- author_name String?
796
- rating Float
797
- text String?
798
- createdAt DateTime @default(now())
791
+ id String @id @default(cuid())
792
+ reviewableId String
793
+ reviewableType ServiceTypes
794
+ author_name String?
795
+ rating Float
796
+ text String?
797
+ createdAt DateTime @default(now())
798
+
799
+ @@index([reviewableId, reviewableType])
799
800
  }
800
801
 
801
802
 
803
+
802
804
  model Session {
803
805
  id String @id @default(cuid())
804
806
  sessionToken String @unique
@@ -1126,6 +1128,7 @@ model Venue {
1126
1128
  dress String?
1127
1129
 
1128
1130
  bashEvents BashEvent[]
1131
+
1129
1132
  }
1130
1133
 
1131
1134
  model Organization {