@bash-app/bash-common 20.5.0 → 20.5.2

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": "20.5.0",
3
+ "version": "20.5.2",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -336,12 +336,11 @@ enum UserSubscriptionType {
336
336
  VIP
337
337
  }
338
338
 
339
- model SubServiceSubcription {
340
- id String @id @default(cuid())
339
+ model SubServiceSubscription {
340
+ id String @id @default(cuid())
341
341
  ownerId String
342
- owner User @relation(fields: [ownerId], references: [id], onDelete: Cascade)
343
- type ServiceType
344
- slots Int @default(0)
342
+ owner User @relation(fields: [ownerId], references: [id], onDelete: Cascade)
343
+ slots Int @default(0)
345
344
  stripeSubscriptionId String?
346
345
  }
347
346
 
@@ -793,11 +792,11 @@ enum SponsorType {
793
792
  }
794
793
 
795
794
  model User {
796
- id String @id @default(cuid())
797
- email String @unique
798
- createdOn DateTime @default(now())
799
- stripeCustomerId String? @unique
800
- stripeAccountId String? @unique
795
+ id String @id @default(cuid())
796
+ email String @unique
797
+ createdOn DateTime @default(now())
798
+ stripeCustomerId String? @unique
799
+ stripeAccountId String? @unique
801
800
  googleCalendarAccess String?
802
801
  givenName String?
803
802
  familyName String?
@@ -808,11 +807,11 @@ model User {
808
807
  dob DateTime?
809
808
  gender Gender?
810
809
  sex Sex?
811
- roles UserRole[] @default([User])
810
+ roles UserRole[] @default([User])
812
811
  services Service[]
813
- createdEvents BashEvent[] @relation("CreatedEvent")
814
- ticketsISent Ticket[] @relation("TicketsISent")
815
- ticketsIOwn Ticket[] @relation("TicketsIOwn")
812
+ createdEvents BashEvent[] @relation("CreatedEvent")
813
+ ticketsISent Ticket[] @relation("TicketsISent")
814
+ ticketsIOwn Ticket[] @relation("TicketsIOwn")
816
815
  reviews Review[]
817
816
  sponsorships SponsoredEvent[]
818
817
  investments Investment[]
@@ -835,18 +834,18 @@ model User {
835
834
  city String?
836
835
  state String?
837
836
  postalCode String?
838
- country String? @default("US")
837
+ country String? @default("US")
839
838
  phone String?
840
- documentIDId String? @unique
839
+ documentIDId String? @unique
841
840
  documentID DocumentID?
842
841
  comment BashComment[]
843
842
  associatedBashes AssociatedBash[]
844
- invitationsCreatedByMe Invitation[] @relation("InvitationsCreatedByMe")
845
- invitationsSentToMe Invitation[] @relation("InvitationsSentToMe")
846
- notificationsCreatedByMe BashNotification[] @relation("NotificationsCreatedByMe")
847
- remindersCreatedByMe Reminder[] @relation("RemindersCreatedByMe")
848
- remindersAssignedToMe Reminder[] @relation("RemindersAssignedToMe")
849
- eventTasksAssignedToMe EventTask[] @relation("TasksAssignedToMe")
843
+ invitationsCreatedByMe Invitation[] @relation("InvitationsCreatedByMe")
844
+ invitationsSentToMe Invitation[] @relation("InvitationsSentToMe")
845
+ notificationsCreatedByMe BashNotification[] @relation("NotificationsCreatedByMe")
846
+ remindersCreatedByMe Reminder[] @relation("RemindersCreatedByMe")
847
+ remindersAssignedToMe Reminder[] @relation("RemindersAssignedToMe")
848
+ eventTasksAssignedToMe EventTask[] @relation("TasksAssignedToMe")
850
849
  checkouts Checkout[]
851
850
  ticketTiersWaitListsIveJoined TicketTier[]
852
851
  contacts Contact[]
@@ -854,7 +853,7 @@ model User {
854
853
  ServiceCheckout ServiceCheckout[]
855
854
  bookingForMe Booking[]
856
855
  bashSubscription UserSubscription?
857
- subServiceSubcriptions SubServiceSubcription[]
856
+ subServiceSubcriptions SubServiceSubscription[]
858
857
  }
859
858
 
860
859
  model Contact {