@bash-app/bash-common 29.12.0 → 29.14.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "29.12.0",
3
+ "version": "29.14.0",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -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 Coordinates[] // A BashEvent can have multiple sets of coordinates
238
+ coordinates Coordinates[] // A BashEvent can have multiple sets of coordinates
240
239
  // stripeAccount StripeAccount[]
241
- rate Rate[]
240
+ rate Rate[]
242
241
  }
243
242
 
244
243
  model Coordinates {
245
- id Int @id @default(autoincrement())
246
- lat Float?
247
- lng Float?
248
- bashEventId String? // Foreign key to BashEvent, now of type String
249
- bashEvent BashEvent? @relation(fields: [bashEventId], references: [id])
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 @id @default(cuid())
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? @relation("MultipleRates", fields: [serviceMultipleRatesId], references: [id], onDelete: Cascade)
359
+ serviceMultipleRates Service? @relation("MultipleRates", fields: [serviceMultipleRatesId], references: [id], onDelete: Cascade)
363
360
  bashEventId String?
364
- bashEvent BashEvent? @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
361
+ bashEvent BashEvent? @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
365
362
  waitList User[]
366
- price Int @default(0)
367
- title String @default("Free")
363
+ price Int @default(0)
364
+ title String @default("Free")
368
365
  sortOrder Int?
369
366
  description String?
370
- maximumNumberOfHours Int @default(24)
371
- maximumHourCount Int @default(24)
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([serviceId, bashEventId, title])
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 Rate[]
884
+ rate Rate[]
888
885
  }
889
886
 
890
887
  model Contact {
@@ -920,9 +917,9 @@ model AssociatedBash {
920
917
  model Service {
921
918
  id String @id @default(cuid())
922
919
 
923
- serviceType ServiceTypes
924
- serviceStatus ServiceStatus @default(Draft)
925
- serviceCondtion ServiceCondition @default(Pending)
920
+ serviceType ServiceTypes
921
+ serviceStatus ServiceStatus @default(Draft)
922
+ serviceCondition ServiceCondition @default(Pending)
926
923
 
927
924
  //current owner
928
925
  ownerId String?
@@ -956,8 +953,7 @@ model Service {
956
953
  communityInvolvement String?
957
954
  emergencyContact String?
958
955
  contactDetails String?
959
- rate Rate? @relation("SingleRate")
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 {