@bash-app/bash-common 29.12.0 → 29.13.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 +1 -1
- package/prisma/schema.prisma +17 -22
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -137,7 +137,6 @@ model BashEventPromoCode {
|
|
|
137
137
|
usedBy User[]
|
|
138
138
|
|
|
139
139
|
@@unique([ticketTierId, code])
|
|
140
|
-
|
|
141
140
|
}
|
|
142
141
|
|
|
143
142
|
model BashNotification {
|
|
@@ -236,17 +235,17 @@ model BashEvent {
|
|
|
236
235
|
subtitle String?
|
|
237
236
|
isFeatured Boolean?
|
|
238
237
|
isTrending Boolean?
|
|
239
|
-
coordinates
|
|
238
|
+
coordinates Coordinates[] // A BashEvent can have multiple sets of coordinates
|
|
240
239
|
// stripeAccount StripeAccount[]
|
|
241
|
-
rate
|
|
240
|
+
rate Rate[]
|
|
242
241
|
}
|
|
243
242
|
|
|
244
243
|
model Coordinates {
|
|
245
|
-
id
|
|
246
|
-
lat
|
|
247
|
-
lng
|
|
248
|
-
bashEventId
|
|
249
|
-
bashEvent
|
|
244
|
+
id Int @id @default(autoincrement())
|
|
245
|
+
lat Float?
|
|
246
|
+
lng Float?
|
|
247
|
+
bashEventId String? // Foreign key to BashEvent, now of type String
|
|
248
|
+
bashEvent BashEvent? @relation(fields: [bashEventId], references: [id])
|
|
250
249
|
}
|
|
251
250
|
|
|
252
251
|
model Checkout {
|
|
@@ -355,25 +354,23 @@ enum BookingStatus {
|
|
|
355
354
|
}
|
|
356
355
|
|
|
357
356
|
model Rate {
|
|
358
|
-
id String
|
|
359
|
-
serviceId String @unique
|
|
360
|
-
service Service? @relation("SingleRate", fields: [serviceId], references: [id], onDelete: Cascade)
|
|
357
|
+
id String @id @default(cuid())
|
|
361
358
|
serviceMultipleRatesId String?
|
|
362
|
-
serviceMultipleRates Service?
|
|
359
|
+
serviceMultipleRates Service? @relation("MultipleRates", fields: [serviceMultipleRatesId], references: [id], onDelete: Cascade)
|
|
363
360
|
bashEventId String?
|
|
364
|
-
bashEvent BashEvent?
|
|
361
|
+
bashEvent BashEvent? @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
|
|
365
362
|
waitList User[]
|
|
366
|
-
price Int
|
|
367
|
-
title String
|
|
363
|
+
price Int @default(0)
|
|
364
|
+
title String @default("Free")
|
|
368
365
|
sortOrder Int?
|
|
369
366
|
description String?
|
|
370
|
-
maximumNumberOfHours
|
|
371
|
-
maximumHourCount
|
|
367
|
+
maximumNumberOfHours Int @default(24)
|
|
368
|
+
maximumHourCount Int @default(24)
|
|
372
369
|
isDonationTier Boolean?
|
|
373
370
|
hidden Boolean?
|
|
374
371
|
// promoCodes BashEventPromoCode[]
|
|
375
372
|
|
|
376
|
-
@@unique([
|
|
373
|
+
@@unique([bashEventId, title])
|
|
377
374
|
}
|
|
378
375
|
|
|
379
376
|
model Booking {
|
|
@@ -884,7 +881,7 @@ model User {
|
|
|
884
881
|
userSubscription UserSubscription?
|
|
885
882
|
serviceSubcriptions ServiceSubscription[]
|
|
886
883
|
volunteerService VolunteerService[]
|
|
887
|
-
rate
|
|
884
|
+
rate Rate[]
|
|
888
885
|
}
|
|
889
886
|
|
|
890
887
|
model Contact {
|
|
@@ -956,8 +953,7 @@ model Service {
|
|
|
956
953
|
communityInvolvement String?
|
|
957
954
|
emergencyContact String?
|
|
958
955
|
contactDetails String?
|
|
959
|
-
|
|
960
|
-
rates Rate[] @relation("MultipleRates")
|
|
956
|
+
rates Rate[] @relation("MultipleRates")
|
|
961
957
|
cancellationPolicy String?
|
|
962
958
|
refundPolicy String?
|
|
963
959
|
insurancePolicy String?
|
|
@@ -983,7 +979,6 @@ model Service {
|
|
|
983
979
|
sponsor Sponsor?
|
|
984
980
|
venue Venue?
|
|
985
981
|
organization Organization?
|
|
986
|
-
|
|
987
982
|
}
|
|
988
983
|
|
|
989
984
|
model StripeAccount {
|