@bash-app/bash-common 27.2.8 → 27.2.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 +1 -1
- package/prisma/schema.prisma +49 -50
- package/src/extendedSchemas.ts +0 -1
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -235,7 +235,7 @@ model BashEvent {
|
|
|
235
235
|
subtitle String?
|
|
236
236
|
isFeatured Boolean?
|
|
237
237
|
isTrending Boolean?
|
|
238
|
-
stripeAccount
|
|
238
|
+
stripeAccount StripeAccount[]
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
model Checkout {
|
|
@@ -564,12 +564,12 @@ enum Privacy {
|
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
model TargetAudience {
|
|
567
|
-
id
|
|
568
|
-
ageRange
|
|
569
|
-
gender
|
|
570
|
-
occupation
|
|
571
|
-
education
|
|
572
|
-
showOnDetailPage
|
|
567
|
+
id String @id @default(cuid())
|
|
568
|
+
ageRange AgeRange @default(NoPreference)
|
|
569
|
+
gender Gender @default(NoPreference)
|
|
570
|
+
occupation Occupation @default(NoPreference)
|
|
571
|
+
education Education @default(NoPreference)
|
|
572
|
+
showOnDetailPage Boolean @default(true)
|
|
573
573
|
bashEvent BashEvent?
|
|
574
574
|
service Service?
|
|
575
575
|
venue Venue?
|
|
@@ -904,6 +904,7 @@ model Service {
|
|
|
904
904
|
creator User @relation("CreatedService", fields: [creatorId], references: [id], onDelete: Cascade)
|
|
905
905
|
dateCreated DateTime @default(now())
|
|
906
906
|
email String
|
|
907
|
+
place String?
|
|
907
908
|
street String
|
|
908
909
|
city String
|
|
909
910
|
state String
|
|
@@ -942,22 +943,22 @@ model Service {
|
|
|
942
943
|
contactEmail String?
|
|
943
944
|
businessPhone String?
|
|
944
945
|
bookings Booking[]
|
|
945
|
-
stripeAccount
|
|
946
|
+
stripeAccount StripeAccount[]
|
|
946
947
|
|
|
947
948
|
@@index([email])
|
|
948
949
|
@@index([phone])
|
|
949
950
|
}
|
|
950
951
|
|
|
951
952
|
model StripeAccount {
|
|
952
|
-
id String
|
|
953
|
+
id String @id @default(cuid())
|
|
953
954
|
stripeAccountId String?
|
|
954
|
-
entityId
|
|
955
|
-
entityType
|
|
956
|
-
createdAt
|
|
957
|
-
updatedAt
|
|
958
|
-
service
|
|
955
|
+
entityId String
|
|
956
|
+
entityType EntityType
|
|
957
|
+
createdAt DateTime @default(now())
|
|
958
|
+
updatedAt DateTime @updatedAt
|
|
959
|
+
service Service? @relation(fields: [entityId], references: [id])
|
|
959
960
|
bashEventId String?
|
|
960
|
-
bashEvent
|
|
961
|
+
bashEvent BashEvent? @relation(fields: [bashEventId], references: [id])
|
|
961
962
|
}
|
|
962
963
|
|
|
963
964
|
model VolunteerService {
|
|
@@ -1191,54 +1192,52 @@ model Venue {
|
|
|
1191
1192
|
id String @id @default(cuid())
|
|
1192
1193
|
ownerId String
|
|
1193
1194
|
owner User @relation(fields: [ownerId], references: [id], onDelete: Cascade)
|
|
1194
|
-
service Service? @relation(fields: [serviceId], references: [id], onDelete: Cascade)
|
|
1195
|
-
serviceId String?
|
|
1196
|
-
serviceConnectionId String?
|
|
1197
|
-
serviceConnection String?
|
|
1198
|
-
venueName String?
|
|
1199
|
-
email String?
|
|
1200
|
-
place
|
|
1201
|
-
street String?
|
|
1202
|
-
city String?
|
|
1203
|
-
state String?
|
|
1204
|
-
zipCode String?
|
|
1205
|
-
country String?
|
|
1206
|
-
phone String?
|
|
1207
|
-
coverPhoto String?
|
|
1195
|
+
service Service? @relation(fields: [serviceId], references: [id], onDelete: Cascade)
|
|
1196
|
+
serviceId String?
|
|
1197
|
+
serviceConnectionId String?
|
|
1198
|
+
serviceConnection String?
|
|
1199
|
+
venueName String?
|
|
1200
|
+
email String?
|
|
1201
|
+
place String?
|
|
1202
|
+
street String?
|
|
1203
|
+
city String?
|
|
1204
|
+
state String?
|
|
1205
|
+
zipCode String?
|
|
1206
|
+
country String?
|
|
1207
|
+
phone String?
|
|
1208
|
+
coverPhoto String?
|
|
1208
1209
|
media Media[]
|
|
1209
1210
|
visibility VisibilityPreference @default(Public)
|
|
1210
1211
|
status ServiceStatus @default(Draft)
|
|
1211
1212
|
yearsInBusiness YearsOfExperience @default(LessThanOneYear)
|
|
1212
|
-
description String?
|
|
1213
|
-
amenities String[]
|
|
1214
|
-
menuItems String?
|
|
1215
|
-
additionalInfo String?
|
|
1216
|
-
features String[]
|
|
1217
|
-
venueTypes String[]
|
|
1213
|
+
description String?
|
|
1214
|
+
amenities String[]
|
|
1215
|
+
menuItems String?
|
|
1216
|
+
additionalInfo String?
|
|
1217
|
+
features String[]
|
|
1218
|
+
venueTypes String[]
|
|
1218
1219
|
availableDateTimes Availability[] @relation("AvailableDateTimes")
|
|
1219
|
-
mission String?
|
|
1220
|
-
pitch String?
|
|
1221
|
-
communityInvolvement String?
|
|
1222
|
-
emergencyContact String?
|
|
1223
|
-
contactDetails String?
|
|
1224
|
-
rates String?
|
|
1225
|
-
cancellationPolicy String?
|
|
1226
|
-
refundPolicy String?
|
|
1227
|
-
safetyPolicy String?
|
|
1228
|
-
insurancePolicy String?
|
|
1220
|
+
mission String?
|
|
1221
|
+
pitch String?
|
|
1222
|
+
communityInvolvement String?
|
|
1223
|
+
emergencyContact String?
|
|
1224
|
+
contactDetails String?
|
|
1225
|
+
rates String?
|
|
1226
|
+
cancellationPolicy String?
|
|
1227
|
+
refundPolicy String?
|
|
1228
|
+
safetyPolicy String?
|
|
1229
|
+
insurancePolicy String?
|
|
1229
1230
|
targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
|
|
1230
1231
|
targetAudienceId String? @unique
|
|
1231
1232
|
bashesInterestedIn BashEventType[]
|
|
1232
1233
|
links ServiceLink[]
|
|
1233
|
-
capacity Int?
|
|
1234
|
+
capacity Int?
|
|
1234
1235
|
amountOfGuests AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id], onDelete: Cascade)
|
|
1235
1236
|
amountOfGuestsId String? @unique
|
|
1236
|
-
trademark
|
|
1237
|
-
manager
|
|
1237
|
+
trademark Boolean?
|
|
1238
|
+
manager Boolean?
|
|
1238
1239
|
}
|
|
1239
1240
|
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
1241
|
model Organization {
|
|
1243
1242
|
id String @id @default(cuid())
|
|
1244
1243
|
ownerId String
|