@bash-app/bash-common 17.8.3 → 18.1.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 +449 -134
- package/src/definitions.ts +1 -14
- package/src/extendedSchemas.ts +7 -6
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -196,16 +196,17 @@ model Invitation {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
model BashEvent {
|
|
199
|
-
id String
|
|
199
|
+
id String @id @default(cuid())
|
|
200
200
|
title String
|
|
201
201
|
creatorId String
|
|
202
|
-
creator User
|
|
202
|
+
creator User @relation("CreatedEvent", fields: [creatorId], references: [id], onDelete: Cascade)
|
|
203
203
|
description String?
|
|
204
|
-
eventType String
|
|
205
|
-
startDateTime DateTime?
|
|
206
|
-
endDateTime DateTime?
|
|
204
|
+
eventType String @default("Other")
|
|
205
|
+
startDateTime DateTime? @default(now())
|
|
206
|
+
endDateTime DateTime? @default(now())
|
|
207
207
|
ticketTiers TicketTier[]
|
|
208
|
-
targetAudience
|
|
208
|
+
targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
|
|
209
|
+
targetAudienceId String?
|
|
209
210
|
amountOfGuests AmountOfGuests?
|
|
210
211
|
recurrence Recurrence?
|
|
211
212
|
vibe String?
|
|
@@ -215,18 +216,18 @@ model BashEvent {
|
|
|
215
216
|
notAllowed String?
|
|
216
217
|
nonProfit Boolean?
|
|
217
218
|
nonProfitId String?
|
|
218
|
-
privacy Privacy
|
|
219
|
+
privacy Privacy @default(Public)
|
|
219
220
|
tickets Ticket[]
|
|
220
221
|
reviews Review[]
|
|
221
222
|
sponsorships SponsoredEvent[]
|
|
222
223
|
investments Investment[]
|
|
223
224
|
capacity Int?
|
|
224
225
|
location String?
|
|
225
|
-
status BashStatus
|
|
226
|
+
status BashStatus @default(Draft)
|
|
226
227
|
tags String[]
|
|
227
228
|
coverPhoto String?
|
|
228
229
|
media Media[]
|
|
229
|
-
club Club?
|
|
230
|
+
club Club? @relation(fields: [clubId], references: [id], onDelete: SetNull)
|
|
230
231
|
clubId String?
|
|
231
232
|
links EventLink[]
|
|
232
233
|
competitions Competition[]
|
|
@@ -484,15 +485,21 @@ model CustomBashEventType {
|
|
|
484
485
|
}
|
|
485
486
|
|
|
486
487
|
model AmountOfGuests {
|
|
487
|
-
id
|
|
488
|
-
bashEventId
|
|
489
|
-
bashEvent
|
|
490
|
-
venueId
|
|
491
|
-
venue
|
|
492
|
-
minimum
|
|
493
|
-
ideal
|
|
494
|
-
showMinimumGuests
|
|
495
|
-
showIdealGuests
|
|
488
|
+
id String @id @default(cuid())
|
|
489
|
+
bashEventId String? @unique
|
|
490
|
+
bashEvent BashEvent? @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
|
|
491
|
+
venueId String? @unique
|
|
492
|
+
venue Venue? @relation(fields: [venueId], references: [id])
|
|
493
|
+
minimum Int? @default(10)
|
|
494
|
+
ideal Int? @default(35)
|
|
495
|
+
showMinimumGuests Boolean @default(true)
|
|
496
|
+
showIdealGuests Boolean @default(true)
|
|
497
|
+
eventService EventService[]
|
|
498
|
+
entertainmentService EntertainmentService[]
|
|
499
|
+
vendor Vendor[]
|
|
500
|
+
exhibitor Exhibitor[]
|
|
501
|
+
sponsor Sponsor[]
|
|
502
|
+
organization Organization[]
|
|
496
503
|
}
|
|
497
504
|
|
|
498
505
|
enum Privacy {
|
|
@@ -501,37 +508,23 @@ enum Privacy {
|
|
|
501
508
|
InviteOnly
|
|
502
509
|
}
|
|
503
510
|
|
|
504
|
-
model
|
|
511
|
+
model TargetAudience {
|
|
505
512
|
id String @id @default(cuid())
|
|
506
|
-
bashEventId String @unique
|
|
507
|
-
bashEvent BashEvent @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
|
|
508
513
|
ageRange AgeRange @default(NoPreference)
|
|
509
514
|
gender Gender @default(NoPreference)
|
|
510
515
|
occupation Occupation @default(NoPreference)
|
|
511
516
|
education Education @default(NoPreference)
|
|
512
517
|
showOnDetailPage Boolean @default(true)
|
|
513
|
-
}
|
|
514
518
|
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
model VenueTargetAudience {
|
|
527
|
-
id String @id @default(cuid())
|
|
528
|
-
venueId String @unique
|
|
529
|
-
venue Venue @relation(fields: [venueId], references: [id], onDelete: Cascade)
|
|
530
|
-
ageRange AgeRange @default(NoPreference)
|
|
531
|
-
gender Gender @default(NoPreference)
|
|
532
|
-
occupation Occupation @default(NoPreference)
|
|
533
|
-
education Education @default(NoPreference)
|
|
534
|
-
showOnDetailPage Boolean @default(true)
|
|
519
|
+
bashEvents BashEvent[]
|
|
520
|
+
services Service[]
|
|
521
|
+
venues Venue[]
|
|
522
|
+
vendors Vendor[]
|
|
523
|
+
eventService EventService[]
|
|
524
|
+
entertainmentService EntertainmentService[]
|
|
525
|
+
exhibitor Exhibitor[]
|
|
526
|
+
sponsor Sponsor[]
|
|
527
|
+
organization Organization[]
|
|
535
528
|
}
|
|
536
529
|
|
|
537
530
|
enum AgeRange {
|
|
@@ -630,15 +623,14 @@ model Link {
|
|
|
630
623
|
url String
|
|
631
624
|
type String?
|
|
632
625
|
icon String?
|
|
633
|
-
vendorLinks VendorLink[]
|
|
634
626
|
eventLinks EventLink[]
|
|
635
627
|
userLinks UserLink[]
|
|
636
628
|
serviceLinks ServiceLink[]
|
|
637
629
|
}
|
|
638
630
|
|
|
639
631
|
model Media {
|
|
640
|
-
id String
|
|
641
|
-
url String
|
|
632
|
+
id String @id @default(cuid())
|
|
633
|
+
url String @unique
|
|
642
634
|
type MediaType
|
|
643
635
|
mimetype String?
|
|
644
636
|
bashEventsReferencingMe BashEvent[]
|
|
@@ -646,6 +638,18 @@ model Media {
|
|
|
646
638
|
sponsoredEventsReferencingMe SponsoredEvent[]
|
|
647
639
|
servicesReferencingMe Service[]
|
|
648
640
|
venueReferencingMe Venue[]
|
|
641
|
+
EventService EventService? @relation(fields: [eventServiceId], references: [id])
|
|
642
|
+
eventServiceId String?
|
|
643
|
+
entertainmentService EntertainmentService? @relation(fields: [entertainmentServiceId], references: [id])
|
|
644
|
+
entertainmentServiceId String?
|
|
645
|
+
vendor Vendor? @relation(fields: [vendorId], references: [id])
|
|
646
|
+
vendorId String?
|
|
647
|
+
exhibitor Exhibitor? @relation(fields: [exhibitorId], references: [id])
|
|
648
|
+
exhibitorId String?
|
|
649
|
+
sponsor Sponsor? @relation(fields: [sponsorId], references: [id])
|
|
650
|
+
sponsorId String?
|
|
651
|
+
organization Organization? @relation(fields: [organizationId], references: [id])
|
|
652
|
+
organizationId String?
|
|
649
653
|
}
|
|
650
654
|
|
|
651
655
|
enum MediaType {
|
|
@@ -723,11 +727,11 @@ enum SponsorType {
|
|
|
723
727
|
}
|
|
724
728
|
|
|
725
729
|
model User {
|
|
726
|
-
id String
|
|
727
|
-
email String
|
|
728
|
-
createdOn DateTime
|
|
729
|
-
stripeCustomerId String?
|
|
730
|
-
stripeAccountId String?
|
|
730
|
+
id String @id @default(cuid())
|
|
731
|
+
email String @unique
|
|
732
|
+
createdOn DateTime @default(now())
|
|
733
|
+
stripeCustomerId String? @unique
|
|
734
|
+
stripeAccountId String? @unique
|
|
731
735
|
googleCalendarAccess String?
|
|
732
736
|
givenName String?
|
|
733
737
|
familyName String?
|
|
@@ -738,17 +742,23 @@ model User {
|
|
|
738
742
|
dob DateTime?
|
|
739
743
|
gender Gender?
|
|
740
744
|
sex Sex?
|
|
741
|
-
roles UserRole[]
|
|
745
|
+
roles UserRole[] @default([User])
|
|
742
746
|
services Service[]
|
|
743
|
-
createdEvents BashEvent[]
|
|
744
|
-
ticketsISent Ticket[]
|
|
745
|
-
ticketsIOwn Ticket[]
|
|
747
|
+
createdEvents BashEvent[] @relation("CreatedEvent")
|
|
748
|
+
ticketsISent Ticket[] @relation("TicketsISent")
|
|
749
|
+
ticketsIOwn Ticket[] @relation("TicketsIOwn")
|
|
746
750
|
reviews Review[]
|
|
747
751
|
sponsorships SponsoredEvent[]
|
|
748
752
|
investments Investment[]
|
|
749
753
|
sessions Session[]
|
|
750
754
|
eventTasks EventTask[]
|
|
755
|
+
eventServices EventService[]
|
|
756
|
+
entertainmentServices EntertainmentService[]
|
|
751
757
|
vendors Vendor[]
|
|
758
|
+
exhibitors Exhibitor[]
|
|
759
|
+
sponsors Sponsor[]
|
|
760
|
+
venues Venue[]
|
|
761
|
+
organizations Organization[]
|
|
752
762
|
clubMembers ClubMember[]
|
|
753
763
|
clubAdmins ClubAdmin[]
|
|
754
764
|
links UserLink[]
|
|
@@ -766,18 +776,18 @@ model User {
|
|
|
766
776
|
city String?
|
|
767
777
|
state String?
|
|
768
778
|
postalCode String?
|
|
769
|
-
country String?
|
|
779
|
+
country String? @default("US")
|
|
770
780
|
phone String?
|
|
771
|
-
documentIDId String?
|
|
781
|
+
documentIDId String? @unique
|
|
772
782
|
documentID DocumentID?
|
|
773
783
|
comment BashComment[]
|
|
774
784
|
associatedBashes AssociatedBash[]
|
|
775
|
-
invitationsCreatedByMe Invitation[]
|
|
776
|
-
invitationsSentToMe Invitation[]
|
|
777
|
-
notificationsCreatedByMe BashNotification[]
|
|
778
|
-
remindersCreatedByMe Reminder[]
|
|
779
|
-
remindersAssignedToMe Reminder[]
|
|
780
|
-
eventTasksAssignedToMe EventTask[]
|
|
785
|
+
invitationsCreatedByMe Invitation[] @relation("InvitationsCreatedByMe")
|
|
786
|
+
invitationsSentToMe Invitation[] @relation("InvitationsSentToMe")
|
|
787
|
+
notificationsCreatedByMe BashNotification[] @relation("NotificationsCreatedByMe")
|
|
788
|
+
remindersCreatedByMe Reminder[] @relation("RemindersCreatedByMe")
|
|
789
|
+
remindersAssignedToMe Reminder[] @relation("RemindersAssignedToMe")
|
|
790
|
+
eventTasksAssignedToMe EventTask[] @relation("TasksAssignedToMe")
|
|
781
791
|
checkouts Checkout[]
|
|
782
792
|
ticketTiersWaitListsIveJoined TicketTier[]
|
|
783
793
|
contacts Contact[]
|
|
@@ -814,41 +824,249 @@ model AssociatedBash {
|
|
|
814
824
|
}
|
|
815
825
|
|
|
816
826
|
model Service {
|
|
817
|
-
id
|
|
818
|
-
ownerId
|
|
819
|
-
owner
|
|
820
|
-
email
|
|
821
|
-
streetAddress
|
|
822
|
-
city
|
|
823
|
-
state
|
|
824
|
-
postalCode
|
|
825
|
-
country
|
|
826
|
-
phone
|
|
827
|
-
title
|
|
828
|
-
coverPhoto
|
|
829
|
-
agreedToAgreement
|
|
830
|
-
media
|
|
831
|
-
serviceTypes
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
description String?
|
|
838
|
-
canContact Boolean?
|
|
827
|
+
id String @id @default(cuid())
|
|
828
|
+
ownerId String
|
|
829
|
+
owner User @relation(fields: [ownerId], references: [id], onDelete: Cascade)
|
|
830
|
+
email String
|
|
831
|
+
streetAddress String
|
|
832
|
+
city String
|
|
833
|
+
state String
|
|
834
|
+
postalCode String
|
|
835
|
+
country String
|
|
836
|
+
phone String
|
|
837
|
+
title String
|
|
838
|
+
coverPhoto String?
|
|
839
|
+
agreedToAgreement Boolean?
|
|
840
|
+
media Media[]
|
|
841
|
+
serviceTypes ServiceType[]
|
|
842
|
+
customServiceTag String[]
|
|
843
|
+
yearsOfExperince YearsOfExperience @default(LessThanOneYear)
|
|
844
|
+
serviceLinks ServiceLink[]
|
|
845
|
+
description String?
|
|
846
|
+
canContact Boolean?
|
|
839
847
|
// musicGenre MusicGenreType?
|
|
840
|
-
visibility
|
|
848
|
+
visibility VisibilityPreference @default(Public)
|
|
841
849
|
// bashesInterestedIn BashEventType[]
|
|
842
|
-
status
|
|
843
|
-
venues
|
|
844
|
-
serviceRangeId
|
|
845
|
-
serviceRange
|
|
846
|
-
targetAudience
|
|
850
|
+
status ServiceStatus @default(Draft)
|
|
851
|
+
venues Venue[]
|
|
852
|
+
serviceRangeId String @unique
|
|
853
|
+
serviceRange ServiceRange @relation("ServiceRange", fields: [serviceRangeId], references: [id], onDelete: Cascade)
|
|
854
|
+
targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
|
|
855
|
+
targetAudienceId String?
|
|
856
|
+
eventService EventService[]
|
|
857
|
+
entertainmentService EntertainmentService[]
|
|
858
|
+
vendor Vendor[]
|
|
859
|
+
exhibitor Exhibitor[]
|
|
860
|
+
sponsor Sponsor[]
|
|
861
|
+
organization Organization[]
|
|
847
862
|
|
|
848
863
|
@@index([email])
|
|
849
864
|
@@index([phone])
|
|
850
865
|
}
|
|
851
866
|
|
|
867
|
+
model EventService {
|
|
868
|
+
id String @id @default(cuid())
|
|
869
|
+
service Service? @relation(fields: [serviceId], references: [id])
|
|
870
|
+
serviceId String?
|
|
871
|
+
eventServiceName String
|
|
872
|
+
eventServiceTypes EventServiceType[]
|
|
873
|
+
eventServiceSubType String?
|
|
874
|
+
email String
|
|
875
|
+
streetAddress String
|
|
876
|
+
city String
|
|
877
|
+
state String
|
|
878
|
+
postalCode String
|
|
879
|
+
country String
|
|
880
|
+
phone String
|
|
881
|
+
coverPhoto String?
|
|
882
|
+
media Media[]
|
|
883
|
+
visibility VisibilityPreference @default(Public)
|
|
884
|
+
yearsOfExperience YearsOfExperience
|
|
885
|
+
description String?
|
|
886
|
+
crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
|
|
887
|
+
additionalInfo String?
|
|
888
|
+
goodsOrServices String[]
|
|
889
|
+
menuItems String?
|
|
890
|
+
venueTypes String[]
|
|
891
|
+
availableDateTimes Availability[] @relation("AvailableDateTimes")
|
|
892
|
+
mission String?
|
|
893
|
+
communityInvolvement String?
|
|
894
|
+
emergencyContact String?
|
|
895
|
+
contactDetails String?
|
|
896
|
+
rates String?
|
|
897
|
+
cancellationPolicy String?
|
|
898
|
+
refundPolicy String?
|
|
899
|
+
insurancePolicy String?
|
|
900
|
+
bashesInterestedIn BashEventType[]
|
|
901
|
+
links ServiceLink[]
|
|
902
|
+
targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
|
|
903
|
+
targetAudienceId String?
|
|
904
|
+
amountOfGuestsId String?
|
|
905
|
+
User User? @relation(fields: [userId], references: [id])
|
|
906
|
+
userId String?
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
model EntertainmentService {
|
|
910
|
+
id String @id @default(cuid())
|
|
911
|
+
service Service? @relation(fields: [serviceId], references: [id])
|
|
912
|
+
serviceId String?
|
|
913
|
+
entertainmentServiceName String
|
|
914
|
+
entertainmentServiceTypes EntertainmentServiceType[]
|
|
915
|
+
entertainmentServiceSubType String?
|
|
916
|
+
genre MusicGenreType?
|
|
917
|
+
email String
|
|
918
|
+
streetAddress String
|
|
919
|
+
city String
|
|
920
|
+
state String
|
|
921
|
+
postalCode String
|
|
922
|
+
country String
|
|
923
|
+
phone String
|
|
924
|
+
coverPhoto String?
|
|
925
|
+
media Media[]
|
|
926
|
+
visibility VisibilityPreference @default(Public)
|
|
927
|
+
yearsOfExperience YearsOfExperience
|
|
928
|
+
description String?
|
|
929
|
+
crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
|
|
930
|
+
additionalInfo String?
|
|
931
|
+
goodsOrServices String[]
|
|
932
|
+
venueTypes String[]
|
|
933
|
+
availableDateTimes Availability[] @relation("AvailableDateTimes")
|
|
934
|
+
mission String?
|
|
935
|
+
communityInvolvement String?
|
|
936
|
+
emergencyContact String?
|
|
937
|
+
contactDetails String?
|
|
938
|
+
rates String?
|
|
939
|
+
cancellationPolicy String?
|
|
940
|
+
refundPolicy String?
|
|
941
|
+
insurancePolicy String?
|
|
942
|
+
bashesInterestedIn BashEventType[]
|
|
943
|
+
links ServiceLink[]
|
|
944
|
+
targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
|
|
945
|
+
targetAudienceId String?
|
|
946
|
+
amountOfGuestsId String?
|
|
947
|
+
User User? @relation(fields: [userId], references: [id])
|
|
948
|
+
userId String?
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
model Vendor {
|
|
952
|
+
id String @id @default(cuid())
|
|
953
|
+
service Service? @relation(fields: [serviceId], references: [id])
|
|
954
|
+
serviceId String?
|
|
955
|
+
vendorName String
|
|
956
|
+
email String
|
|
957
|
+
streetAddress String
|
|
958
|
+
city String
|
|
959
|
+
state String
|
|
960
|
+
postalCode String
|
|
961
|
+
country String
|
|
962
|
+
phone String
|
|
963
|
+
coverPhoto String?
|
|
964
|
+
media Media[]
|
|
965
|
+
visibility VisibilityPreference @default(Public)
|
|
966
|
+
yearsOfExperience YearsOfExperience
|
|
967
|
+
description String?
|
|
968
|
+
crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
|
|
969
|
+
additionalInfo String?
|
|
970
|
+
goodsOrServices String[]
|
|
971
|
+
menuItems String?
|
|
972
|
+
venueTypes String[]
|
|
973
|
+
availableDateTimes Availability[] @relation("AvailableDateTimes")
|
|
974
|
+
mission String?
|
|
975
|
+
communityInvolvement String?
|
|
976
|
+
emergencyContact String?
|
|
977
|
+
contactDetails String?
|
|
978
|
+
rates String?
|
|
979
|
+
cancellationPolicy String?
|
|
980
|
+
refundPolicy String?
|
|
981
|
+
insurancePolicy String?
|
|
982
|
+
bashesInterestedIn BashEventType[]
|
|
983
|
+
links ServiceLink[]
|
|
984
|
+
targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
|
|
985
|
+
targetAudienceId String?
|
|
986
|
+
User User? @relation(fields: [userId], references: [id])
|
|
987
|
+
userId String?
|
|
988
|
+
amountOfGuestsId String?
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
model Exhibitor {
|
|
992
|
+
id String @id @default(cuid())
|
|
993
|
+
service Service? @relation(fields: [serviceId], references: [id])
|
|
994
|
+
serviceId String?
|
|
995
|
+
exhibitorName String
|
|
996
|
+
email String
|
|
997
|
+
streetAddress String
|
|
998
|
+
city String
|
|
999
|
+
state String
|
|
1000
|
+
postalCode String
|
|
1001
|
+
country String
|
|
1002
|
+
phone String
|
|
1003
|
+
coverPhoto String?
|
|
1004
|
+
media Media[]
|
|
1005
|
+
visibility VisibilityPreference @default(Public)
|
|
1006
|
+
yearsOfExperience YearsOfExperience
|
|
1007
|
+
description String?
|
|
1008
|
+
crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
|
|
1009
|
+
additionalInfo String?
|
|
1010
|
+
goodsOrServices String[]
|
|
1011
|
+
venueTypes String[]
|
|
1012
|
+
availableDateTimes Availability[] @relation("AvailableDateTimes")
|
|
1013
|
+
mission String?
|
|
1014
|
+
communityInvolvement String?
|
|
1015
|
+
emergencyContact String?
|
|
1016
|
+
contactDetails String?
|
|
1017
|
+
rates String?
|
|
1018
|
+
cancellationPolicy String?
|
|
1019
|
+
refundPolicy String?
|
|
1020
|
+
insurancePolicy String?
|
|
1021
|
+
bashesInterestedIn BashEventType[]
|
|
1022
|
+
links ServiceLink[]
|
|
1023
|
+
targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
|
|
1024
|
+
targetAudienceId String?
|
|
1025
|
+
User User? @relation(fields: [userId], references: [id])
|
|
1026
|
+
userId String?
|
|
1027
|
+
amountOfGuestsId String?
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
model Sponsor {
|
|
1031
|
+
id String @id @default(cuid())
|
|
1032
|
+
service Service? @relation(fields: [serviceId], references: [id])
|
|
1033
|
+
serviceId String?
|
|
1034
|
+
sponsorName String
|
|
1035
|
+
email String
|
|
1036
|
+
streetAddress String
|
|
1037
|
+
city String
|
|
1038
|
+
state String
|
|
1039
|
+
postalCode String
|
|
1040
|
+
country String
|
|
1041
|
+
phone String
|
|
1042
|
+
coverPhoto String?
|
|
1043
|
+
media Media[]
|
|
1044
|
+
visibility VisibilityPreference @default(Public)
|
|
1045
|
+
yearsOfExperience YearsOfExperience
|
|
1046
|
+
description String?
|
|
1047
|
+
crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
|
|
1048
|
+
additionalInfo String?
|
|
1049
|
+
goodsOrServices String[]
|
|
1050
|
+
menuItems String?
|
|
1051
|
+
venueTypes String[]
|
|
1052
|
+
availableDateTimes Availability[] @relation("AvailableDateTimes")
|
|
1053
|
+
mission String?
|
|
1054
|
+
communityInvolvement String?
|
|
1055
|
+
emergencyContact String?
|
|
1056
|
+
contactDetails String?
|
|
1057
|
+
rates String?
|
|
1058
|
+
cancellationPolicy String?
|
|
1059
|
+
refundPolicy String?
|
|
1060
|
+
insurancePolicy String?
|
|
1061
|
+
bashesInterestedIn BashEventType[]
|
|
1062
|
+
links ServiceLink[]
|
|
1063
|
+
targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
|
|
1064
|
+
targetAudienceId String?
|
|
1065
|
+
amountOfGuestsId String?
|
|
1066
|
+
User User? @relation(fields: [userId], references: [id])
|
|
1067
|
+
userId String?
|
|
1068
|
+
}
|
|
1069
|
+
|
|
852
1070
|
model Venue {
|
|
853
1071
|
id String @id @default(cuid())
|
|
854
1072
|
service Service? @relation(fields: [serviceId], references: [id])
|
|
@@ -868,6 +1086,7 @@ model Venue {
|
|
|
868
1086
|
description String?
|
|
869
1087
|
capacity AmountOfGuests?
|
|
870
1088
|
amenities String[]
|
|
1089
|
+
menuItems String?
|
|
871
1090
|
additionalInfo String?
|
|
872
1091
|
features String[]
|
|
873
1092
|
venueTypes String[]
|
|
@@ -882,21 +1101,113 @@ model Venue {
|
|
|
882
1101
|
cancellationPolicy String?
|
|
883
1102
|
refundPolicy String?
|
|
884
1103
|
safetyPolicy String?
|
|
885
|
-
|
|
1104
|
+
insurancePolicy String?
|
|
1105
|
+
targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
|
|
1106
|
+
targetAudienceId String?
|
|
886
1107
|
bashesInterestedIn BashEventType[]
|
|
887
|
-
|
|
1108
|
+
links ServiceLink[]
|
|
1109
|
+
User User? @relation(fields: [userId], references: [id])
|
|
1110
|
+
userId String?
|
|
888
1111
|
}
|
|
889
1112
|
|
|
890
|
-
|
|
891
|
-
|
|
1113
|
+
model Organization {
|
|
1114
|
+
id String @id @default(cuid())
|
|
1115
|
+
service Service? @relation(fields: [serviceId], references: [id])
|
|
1116
|
+
serviceId String?
|
|
1117
|
+
organizationName String
|
|
1118
|
+
organizationType OrganizationType[]
|
|
1119
|
+
email String
|
|
1120
|
+
streetAddress String
|
|
1121
|
+
city String
|
|
1122
|
+
state String
|
|
1123
|
+
postalCode String
|
|
1124
|
+
country String
|
|
1125
|
+
phone String
|
|
1126
|
+
coverPhoto String?
|
|
1127
|
+
media Media[]
|
|
1128
|
+
visibility VisibilityPreference @default(Public)
|
|
1129
|
+
description String?
|
|
1130
|
+
crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
|
|
1131
|
+
additionalInfo String?
|
|
1132
|
+
goodsOrServices String[]
|
|
1133
|
+
venueTypes String[]
|
|
1134
|
+
availableDateTimes Availability[] @relation("AvailableDateTimes")
|
|
1135
|
+
mission String?
|
|
1136
|
+
communityInvolvement String?
|
|
1137
|
+
emergencyContact String?
|
|
1138
|
+
contactDetails String?
|
|
1139
|
+
rates String?
|
|
1140
|
+
cancellationPolicy String?
|
|
1141
|
+
refundPolicy String?
|
|
1142
|
+
insurancePolicy String?
|
|
1143
|
+
bashesInterestedIn BashEventType[]
|
|
1144
|
+
links ServiceLink[]
|
|
1145
|
+
targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
|
|
1146
|
+
targetAudienceId String?
|
|
1147
|
+
amountOfGuestsId String?
|
|
1148
|
+
User User? @relation(fields: [userId], references: [id])
|
|
1149
|
+
userId String?
|
|
892
1150
|
}
|
|
893
1151
|
|
|
894
|
-
enum
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
1152
|
+
enum EventServiceType {
|
|
1153
|
+
Investor
|
|
1154
|
+
LongTermLoan
|
|
1155
|
+
ShortTermLoan
|
|
1156
|
+
EventPlanning
|
|
1157
|
+
Caterer
|
|
1158
|
+
Cleaner
|
|
1159
|
+
Decorator
|
|
1160
|
+
InteriorDesigner
|
|
1161
|
+
RentalEquipmentProvider
|
|
1162
|
+
FoodAndBeverageProvider
|
|
1163
|
+
MediaCapture
|
|
1164
|
+
AVTechnician
|
|
1165
|
+
GraphicDesigner
|
|
1166
|
+
Influencer
|
|
1167
|
+
Promoter
|
|
1168
|
+
CelebrityAppearance
|
|
1169
|
+
CrewHand
|
|
1170
|
+
EventManager
|
|
1171
|
+
VirtualAssistant
|
|
1172
|
+
Consulting
|
|
1173
|
+
Transportation
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
enum EntertainmentServiceType {
|
|
1177
|
+
Emcees
|
|
1178
|
+
DJs
|
|
1179
|
+
Bands
|
|
1180
|
+
SoloMusicians
|
|
1181
|
+
Comedy
|
|
1182
|
+
VarietyActs
|
|
1183
|
+
PerformanceArtists
|
|
1184
|
+
Magic
|
|
1185
|
+
Dancers
|
|
1186
|
+
Aerialists
|
|
1187
|
+
Impersonators
|
|
1188
|
+
Speakers
|
|
1189
|
+
Auctioneers
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
enum OrganizationType {
|
|
1193
|
+
Church
|
|
1194
|
+
GreekLife
|
|
1195
|
+
SocialClub
|
|
1196
|
+
Nonprofit
|
|
1197
|
+
Corporation
|
|
1198
|
+
EducationalInstitution
|
|
1199
|
+
Sports
|
|
1200
|
+
Government
|
|
1201
|
+
Cultural
|
|
1202
|
+
Lifestyle
|
|
1203
|
+
Political
|
|
1204
|
+
Tourism
|
|
1205
|
+
Youth
|
|
1206
|
+
Senior
|
|
1207
|
+
Tradeshow
|
|
1208
|
+
Conference
|
|
1209
|
+
FoodAndBeverage
|
|
1210
|
+
TechAndStartups
|
|
900
1211
|
}
|
|
901
1212
|
|
|
902
1213
|
enum YearsOfExperience {
|
|
@@ -914,12 +1225,23 @@ model ServiceRange {
|
|
|
914
1225
|
}
|
|
915
1226
|
|
|
916
1227
|
model Availability {
|
|
917
|
-
id
|
|
918
|
-
startDateTime
|
|
919
|
-
endDateTime
|
|
920
|
-
venueId
|
|
921
|
-
|
|
922
|
-
|
|
1228
|
+
id String @id @default(cuid())
|
|
1229
|
+
startDateTime String
|
|
1230
|
+
endDateTime String
|
|
1231
|
+
venueId String?
|
|
1232
|
+
venue Venue? @relation("AvailableDateTimes", fields: [venueId], references: [id])
|
|
1233
|
+
eventServiceId String?
|
|
1234
|
+
eventService EventService? @relation("AvailableDateTimes", fields: [eventServiceId], references: [id])
|
|
1235
|
+
entertainmentServiceId String?
|
|
1236
|
+
entertainmentService EntertainmentService? @relation("AvailableDateTimes", fields: [entertainmentServiceId], references: [id])
|
|
1237
|
+
vendorId String?
|
|
1238
|
+
vendor Vendor? @relation("AvailableDateTimes", fields: [vendorId], references: [id])
|
|
1239
|
+
exhibitorId String?
|
|
1240
|
+
exhibitor Exhibitor? @relation("AvailableDateTimes", fields: [exhibitorId], references: [id])
|
|
1241
|
+
sponsorId String?
|
|
1242
|
+
sponsor Sponsor? @relation("AvailableDateTimes", fields: [sponsorId], references: [id])
|
|
1243
|
+
organizationId String?
|
|
1244
|
+
organization Organization? @relation("AvailableDateTimes", fields: [organizationId], references: [id])
|
|
923
1245
|
}
|
|
924
1246
|
|
|
925
1247
|
enum VisibilityPreference {
|
|
@@ -939,14 +1261,13 @@ enum MusicGenreType {
|
|
|
939
1261
|
}
|
|
940
1262
|
|
|
941
1263
|
enum ServiceType {
|
|
1264
|
+
Volunteer
|
|
942
1265
|
EventService
|
|
943
1266
|
EntertainmentService
|
|
944
|
-
Volunteer
|
|
945
|
-
PartnerService
|
|
946
|
-
Venue
|
|
947
1267
|
Vendor
|
|
948
1268
|
Exhibitor
|
|
949
1269
|
Sponsor
|
|
1270
|
+
Venue
|
|
950
1271
|
Organization
|
|
951
1272
|
}
|
|
952
1273
|
|
|
@@ -1002,32 +1323,26 @@ model VerificationToken {
|
|
|
1002
1323
|
@@unique([identifier, token])
|
|
1003
1324
|
}
|
|
1004
1325
|
|
|
1005
|
-
model Vendor {
|
|
1006
|
-
id String @id @default(cuid())
|
|
1007
|
-
owner User @relation(fields: [ownerId], references: [id], onDelete: Cascade)
|
|
1008
|
-
ownerId String
|
|
1009
|
-
type String
|
|
1010
|
-
amount Float?
|
|
1011
|
-
paidOn String?
|
|
1012
|
-
links VendorLink[]
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
model VendorLink {
|
|
1016
|
-
id String @id @default(cuid())
|
|
1017
|
-
link Link @relation(fields: [linkId], references: [id], onDelete: Cascade)
|
|
1018
|
-
vendor Vendor @relation(fields: [vendorId], references: [id], onDelete: Cascade)
|
|
1019
|
-
linkId String
|
|
1020
|
-
vendorId String
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
1326
|
model ServiceLink {
|
|
1024
|
-
id
|
|
1025
|
-
serviceId
|
|
1026
|
-
service
|
|
1027
|
-
linkId
|
|
1028
|
-
link
|
|
1029
|
-
|
|
1030
|
-
|
|
1327
|
+
id String @id @default(cuid())
|
|
1328
|
+
serviceId String
|
|
1329
|
+
service Service @relation(fields: [serviceId], references: [id], onDelete: Cascade)
|
|
1330
|
+
linkId String
|
|
1331
|
+
link Link @relation(fields: [linkId], references: [id], onDelete: Cascade)
|
|
1332
|
+
eventService EventService? @relation(fields: [eventServiceId], references: [id])
|
|
1333
|
+
eventServiceId String?
|
|
1334
|
+
entertainmentService EntertainmentService? @relation(fields: [entertainmentServiceId], references: [id])
|
|
1335
|
+
entertainmentServiceId String?
|
|
1336
|
+
vendor Vendor? @relation(fields: [vendorId], references: [id])
|
|
1337
|
+
vendorId String?
|
|
1338
|
+
exhibitor Exhibitor? @relation(fields: [exhibitorId], references: [id])
|
|
1339
|
+
exhibitorId String?
|
|
1340
|
+
sponsor Sponsor? @relation(fields: [sponsorId], references: [id])
|
|
1341
|
+
sponsorId String?
|
|
1342
|
+
venue Venue? @relation(fields: [venueId], references: [id])
|
|
1343
|
+
venueId String?
|
|
1344
|
+
organization Organization? @relation(fields: [organizationId], references: [id])
|
|
1345
|
+
organizationId String?
|
|
1031
1346
|
|
|
1032
1347
|
@@index([serviceId])
|
|
1033
1348
|
}
|
package/src/definitions.ts
CHANGED
|
@@ -4,8 +4,6 @@ import {
|
|
|
4
4
|
BashEventVibeTags,
|
|
5
5
|
Contact,
|
|
6
6
|
DayOfWeek,
|
|
7
|
-
ServiceTag,
|
|
8
|
-
SubServiceType,
|
|
9
7
|
Ticket,
|
|
10
8
|
TicketTier,
|
|
11
9
|
User,
|
|
@@ -93,6 +91,7 @@ export type FilterFields = {
|
|
|
93
91
|
price: string[];
|
|
94
92
|
ageRequirement: string[];
|
|
95
93
|
allowed: string[];
|
|
94
|
+
notAllowed: string[];
|
|
96
95
|
crowd: string[];
|
|
97
96
|
vibe: string[];
|
|
98
97
|
included: string[];
|
|
@@ -294,18 +293,6 @@ export const YearsOfExperienceToString: { [key in YearsOfExperience]: string } =
|
|
|
294
293
|
[YearsOfExperience.FivePlusYears]: 'More than five years',
|
|
295
294
|
};
|
|
296
295
|
|
|
297
|
-
export const SubServiceTypeToString: { [key in SubServiceType]: string } = {
|
|
298
|
-
[SubServiceType.Catering]: 'Catering',
|
|
299
|
-
[SubServiceType.DJing]: 'DJ',
|
|
300
|
-
[SubServiceType.LiveBand]: 'Live Band',
|
|
301
|
-
[SubServiceType.Photography]: 'Photography',
|
|
302
|
-
[SubServiceType.Videography]: 'Videography',
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
export const ServiceTagToString: { [key in ServiceTag]: string } = {
|
|
306
|
-
[ServiceTag.Italian]: 'Italian',
|
|
307
|
-
};
|
|
308
|
-
|
|
309
296
|
export type BashEventTypeToStringType = {
|
|
310
297
|
[key in BashEventType]: string;
|
|
311
298
|
};
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
AssociatedBash,
|
|
5
5
|
BashEvent,
|
|
6
6
|
Invitation,
|
|
7
|
-
BashTargetAudience,
|
|
8
7
|
Ticket,
|
|
9
8
|
User,
|
|
10
9
|
TicketTier, Service, Review, Media, BashComment, Recurrence, Contact,
|
|
11
10
|
BashNotification, BashEventPromoCode,
|
|
12
11
|
Reminder, ServiceRange,
|
|
13
|
-
ServiceTargetAudience,
|
|
14
12
|
Checkout,
|
|
15
13
|
ServiceLink,
|
|
16
14
|
Link, Venue, Availability,
|
|
17
|
-
|
|
15
|
+
TargetAudience,
|
|
16
|
+
ServiceStatus,
|
|
18
17
|
} from "@prisma/client";
|
|
18
|
+
import { AttendeeOfBashEvent } from "./definitions";
|
|
19
19
|
|
|
20
20
|
export const FRONT_END_USER_DATA_TO_SELECT = {
|
|
21
21
|
id: true,
|
|
@@ -38,7 +38,7 @@ export const PRIVATE_USER_ACCOUNT_TO_SELECT = {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export interface BashEventExt extends BashEvent {
|
|
41
|
-
targetAudience?:
|
|
41
|
+
targetAudience?: TargetAudience;
|
|
42
42
|
amountOfGuests?: AmountOfGuests;
|
|
43
43
|
recurrence?: Recurrence;
|
|
44
44
|
creator?: PublicUser;
|
|
@@ -126,10 +126,11 @@ export const BASH_EVENT_DATA_TO_REMOVE: RemoveCommonProperties<BashEvent, BashEv
|
|
|
126
126
|
export interface VenueExt extends Venue {
|
|
127
127
|
service: Service;
|
|
128
128
|
availableDateTimes: Availability[];
|
|
129
|
-
targetAudience:
|
|
129
|
+
targetAudience: TargetAudience;
|
|
130
130
|
venueLinks: ServiceLinkExt[];
|
|
131
131
|
capacity?: AmountOfGuests;
|
|
132
132
|
media?: Media[];
|
|
133
|
+
status?: ServiceStatus;
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
export const VENUE_DATA_TO_INCLUDE = {
|
|
@@ -145,7 +146,7 @@ export interface ServiceExt extends Service {
|
|
|
145
146
|
owner: PublicUser;
|
|
146
147
|
media: Media[];
|
|
147
148
|
serviceRange: ServiceRange;
|
|
148
|
-
targetAudience:
|
|
149
|
+
targetAudience: TargetAudience;
|
|
149
150
|
serviceLinks?: ServiceLinkExt[];
|
|
150
151
|
venues: VenueExt[];
|
|
151
152
|
}
|