@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 +1 -1
- package/prisma/schema.prisma +22 -23
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -336,12 +336,11 @@ enum UserSubscriptionType {
|
|
|
336
336
|
VIP
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
model
|
|
340
|
-
id String
|
|
339
|
+
model SubServiceSubscription {
|
|
340
|
+
id String @id @default(cuid())
|
|
341
341
|
ownerId String
|
|
342
|
-
owner User
|
|
343
|
-
|
|
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
|
|
797
|
-
email String
|
|
798
|
-
createdOn DateTime
|
|
799
|
-
stripeCustomerId String?
|
|
800
|
-
stripeAccountId String?
|
|
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[]
|
|
810
|
+
roles UserRole[] @default([User])
|
|
812
811
|
services Service[]
|
|
813
|
-
createdEvents BashEvent[]
|
|
814
|
-
ticketsISent Ticket[]
|
|
815
|
-
ticketsIOwn Ticket[]
|
|
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?
|
|
837
|
+
country String? @default("US")
|
|
839
838
|
phone String?
|
|
840
|
-
documentIDId String?
|
|
839
|
+
documentIDId String? @unique
|
|
841
840
|
documentID DocumentID?
|
|
842
841
|
comment BashComment[]
|
|
843
842
|
associatedBashes AssociatedBash[]
|
|
844
|
-
invitationsCreatedByMe Invitation[]
|
|
845
|
-
invitationsSentToMe Invitation[]
|
|
846
|
-
notificationsCreatedByMe BashNotification[]
|
|
847
|
-
remindersCreatedByMe Reminder[]
|
|
848
|
-
remindersAssignedToMe Reminder[]
|
|
849
|
-
eventTasksAssignedToMe EventTask[]
|
|
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
|
|
856
|
+
subServiceSubcriptions SubServiceSubscription[]
|
|
858
857
|
}
|
|
859
858
|
|
|
860
859
|
model Contact {
|