@bash-app/bash-common 27.2.3 → 27.2.5
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 +23 -1
- package/src/extendedSchemas.ts +3 -1
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -235,6 +235,7 @@ model BashEvent {
|
|
|
235
235
|
subtitle String?
|
|
236
236
|
isFeatured Boolean?
|
|
237
237
|
isTrending Boolean?
|
|
238
|
+
stripeAccount StripeAccount[]
|
|
238
239
|
}
|
|
239
240
|
|
|
240
241
|
model Checkout {
|
|
@@ -941,14 +942,22 @@ model Service {
|
|
|
941
942
|
contactEmail String?
|
|
942
943
|
businessPhone String?
|
|
943
944
|
bookings Booking[]
|
|
945
|
+
stripeAccount StripeAccount[]
|
|
944
946
|
|
|
945
947
|
@@index([email])
|
|
946
948
|
@@index([phone])
|
|
947
949
|
}
|
|
948
950
|
|
|
949
|
-
model
|
|
951
|
+
model StripeAccount {
|
|
950
952
|
id String @id @default(cuid())
|
|
951
953
|
stripeAccountId String?
|
|
954
|
+
entityId String
|
|
955
|
+
entityType EntityType
|
|
956
|
+
createdAt DateTime @default(now())
|
|
957
|
+
updatedAt DateTime @updatedAt
|
|
958
|
+
service Service? @relation(fields: [entityId], references: [id])
|
|
959
|
+
bashEventId String?
|
|
960
|
+
bashEvent BashEvent? @relation(fields: [bashEventId], references: [id])
|
|
952
961
|
}
|
|
953
962
|
|
|
954
963
|
model VolunteerService {
|
|
@@ -1224,6 +1233,8 @@ model Venue {
|
|
|
1224
1233
|
capacity Int?
|
|
1225
1234
|
amountOfGuests AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id], onDelete: Cascade)
|
|
1226
1235
|
amountOfGuestsId String? @unique
|
|
1236
|
+
trademark Boolean
|
|
1237
|
+
manager Boolean
|
|
1227
1238
|
}
|
|
1228
1239
|
|
|
1229
1240
|
|
|
@@ -1466,3 +1477,14 @@ enum ServiceTypes {
|
|
|
1466
1477
|
Venues
|
|
1467
1478
|
Organizations
|
|
1468
1479
|
}
|
|
1480
|
+
|
|
1481
|
+
enum EntityType {
|
|
1482
|
+
EVENT_SERVICE
|
|
1483
|
+
ENTERTAINMENT_SERVICE
|
|
1484
|
+
VENDOR
|
|
1485
|
+
EXHIBITOR
|
|
1486
|
+
SPONSOR
|
|
1487
|
+
VENUE
|
|
1488
|
+
ORGANIZATION
|
|
1489
|
+
BASH_EVENT // For BashEvents
|
|
1490
|
+
}
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -209,13 +209,15 @@ export const SERVICE_LINK_DATA_TO_INCLUDE = {
|
|
|
209
209
|
export interface VenueExt extends Venue {
|
|
210
210
|
service?: Service;
|
|
211
211
|
availableDateTimes?: Availability[];
|
|
212
|
+
agreedToAgreement: boolean;
|
|
212
213
|
targetAudience?: TargetAudience | null;
|
|
213
214
|
links?: ServiceLinkExt[];
|
|
214
215
|
coverPhotoUrl?: string;
|
|
215
216
|
media?: Media[];
|
|
216
|
-
amountOfGuests?: AmountOfGuests | null;
|
|
217
|
+
amountOfGuests?: AmountOfGuests | null;
|
|
217
218
|
}
|
|
218
219
|
|
|
220
|
+
|
|
219
221
|
export const VOLUNTEER_DATA_TO_INCLUDE = {
|
|
220
222
|
links: {
|
|
221
223
|
include: {
|