@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 +1 -1
- package/prisma/schema.prisma +5 -5
- package/src/definitions.ts +1 -0
- package/src/extendedSchemas.ts +3 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -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
|
-
|
|
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 {
|
package/src/definitions.ts
CHANGED
package/src/extendedSchemas.ts
CHANGED
|
@@ -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 {
|