@bash-app/bash-common 29.15.9 → 29.16.1

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.9",
3
+ "version": "29.16.1",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -789,15 +789,13 @@ model Review {
789
789
 
790
790
  model GoogleReview {
791
791
  id String @id @default(cuid())
792
- reviewableId String
793
- reviewableType ServiceTypes
794
792
  author_name String?
795
793
  rating Float
796
794
  text String?
797
795
  createdAt DateTime @default(now())
798
-
799
- @@index([reviewableId, reviewableType])
800
- }
796
+ serviceId String
797
+ service Service @relation(fields: [serviceId], references: [id], onDelete: Cascade)
798
+ }
801
799
 
802
800
 
803
801
 
@@ -1001,6 +999,8 @@ model Service {
1001
999
  sponsor Sponsor?
1002
1000
  venue Venue?
1003
1001
  organization Organization?
1002
+
1003
+ googleReviews GoogleReview[]
1004
1004
  }
1005
1005
 
1006
1006
  model StripeAccount {
@@ -100,6 +100,7 @@ export const SERVICE_DATA_TO_INCLUDE = {
100
100
  serviceLinks: {
101
101
  include: SERVICE_LINK_DATA_TO_INCLUDE
102
102
  },
103
+ googleReviews: true,
103
104
  } satisfies Prisma.ServiceInclude;
104
105
 
105
106
  // export type ServiceSpecificName = keyof Pick<
@@ -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 {