@bash-app/bash-common 29.15.8 → 29.16.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": "29.15.8",
3
+ "version": "29.16.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",
@@ -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,14 +788,15 @@ 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())
799
- }
791
+ id String @id @default(cuid())
792
+ author_name String?
793
+ rating Float
794
+ text String?
795
+ createdAt DateTime @default(now())
796
+ serviceId String
797
+ service Service @relation(fields: [serviceId], references: [id], onDelete: Cascade)
798
+ }
799
+
800
800
 
801
801
 
802
802
  model Session {
@@ -999,6 +999,8 @@ model Service {
999
999
  sponsor Sponsor?
1000
1000
  venue Venue?
1001
1001
  organization Organization?
1002
+
1003
+ googleReviews GoogleReview[]
1002
1004
  }
1003
1005
 
1004
1006
  model StripeAccount {
@@ -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 {
@@ -26,6 +26,7 @@ import {
26
26
  BashEventType,
27
27
  Coordinates,
28
28
  Rate,
29
+ GoogleReview,
29
30
  } from "@prisma/client";
30
31
  import { UnionFromArray } from "./definitions";
31
32
 
@@ -173,6 +174,8 @@ export interface ServiceExt extends Service {
173
174
  sponsor?: Sponsor;
174
175
  venue?: Venue;
175
176
  organization?: Organization;
177
+
178
+ googleReviews?: GoogleReview[];
176
179
  }
177
180
 
178
181
  export interface EventServiceExt extends EventService {