@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "17.8.3",
3
+ "version": "18.1.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",
@@ -196,16 +196,17 @@ model Invitation {
196
196
  }
197
197
 
198
198
  model BashEvent {
199
- id String @id @default(cuid())
199
+ id String @id @default(cuid())
200
200
  title String
201
201
  creatorId String
202
- creator User @relation("CreatedEvent", fields: [creatorId], references: [id], onDelete: Cascade)
202
+ creator User @relation("CreatedEvent", fields: [creatorId], references: [id], onDelete: Cascade)
203
203
  description String?
204
- eventType String @default("Other")
205
- startDateTime DateTime? @default(now())
206
- endDateTime DateTime? @default(now())
204
+ eventType String @default("Other")
205
+ startDateTime DateTime? @default(now())
206
+ endDateTime DateTime? @default(now())
207
207
  ticketTiers TicketTier[]
208
- targetAudience BashTargetAudience?
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 @default(Public)
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 @default(Draft)
226
+ status BashStatus @default(Draft)
226
227
  tags String[]
227
228
  coverPhoto String?
228
229
  media Media[]
229
- club Club? @relation(fields: [clubId], references: [id], onDelete: SetNull)
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 String @id @default(cuid())
488
- bashEventId String? @unique
489
- bashEvent BashEvent? @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
490
- venueId String? @unique
491
- venue Venue? @relation(fields: [venueId], references: [id])
492
- minimum Int? @default(10)
493
- ideal Int? @default(35)
494
- showMinimumGuests Boolean @default(true)
495
- showIdealGuests Boolean @default(true)
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 BashTargetAudience {
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
- model ServiceTargetAudience {
516
- id String @id @default(cuid())
517
- serviceId String @unique
518
- service Service @relation(fields: [serviceId], references: [id], onDelete: Cascade)
519
- ageRange AgeRange @default(NoPreference)
520
- gender Gender @default(NoPreference)
521
- occupation Occupation @default(NoPreference)
522
- education Education @default(NoPreference)
523
- showOnDetailPage Boolean @default(true)
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 @id @default(cuid())
641
- url String @unique
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 @id @default(cuid())
727
- email String @unique
728
- createdOn DateTime @default(now())
729
- stripeCustomerId String? @unique
730
- stripeAccountId String? @unique
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[] @default([User])
745
+ roles UserRole[] @default([User])
742
746
  services Service[]
743
- createdEvents BashEvent[] @relation("CreatedEvent")
744
- ticketsISent Ticket[] @relation("TicketsISent")
745
- ticketsIOwn Ticket[] @relation("TicketsIOwn")
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? @default("US")
779
+ country String? @default("US")
770
780
  phone String?
771
- documentIDId String? @unique
781
+ documentIDId String? @unique
772
782
  documentID DocumentID?
773
783
  comment BashComment[]
774
784
  associatedBashes AssociatedBash[]
775
- invitationsCreatedByMe Invitation[] @relation("InvitationsCreatedByMe")
776
- invitationsSentToMe Invitation[] @relation("InvitationsSentToMe")
777
- notificationsCreatedByMe BashNotification[] @relation("NotificationsCreatedByMe")
778
- remindersCreatedByMe Reminder[] @relation("RemindersCreatedByMe")
779
- remindersAssignedToMe Reminder[] @relation("RemindersAssignedToMe")
780
- eventTasksAssignedToMe EventTask[] @relation("TasksAssignedToMe")
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 String @id @default(cuid())
818
- ownerId String
819
- owner User @relation(fields: [ownerId], references: [id], onDelete: Cascade)
820
- email String
821
- streetAddress String
822
- city String
823
- state String
824
- postalCode String
825
- country String
826
- phone String
827
- title String
828
- coverPhoto String?
829
- agreedToAgreement Boolean?
830
- media Media[]
831
- serviceTypes ServiceType[]
832
- subServiceTypes SubServiceType[]
833
- serviceTag ServiceTag[]
834
- customServiceTag String[]
835
- yearsOfExperince YearsOfExperience @default(LessThanOneYear)
836
- serviceLinks ServiceLink[]
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 VisibilityPreference @default(Public)
848
+ visibility VisibilityPreference @default(Public)
841
849
  // bashesInterestedIn BashEventType[]
842
- status ServiceStatus @default(Draft)
843
- venues Venue[]
844
- serviceRangeId String @unique
845
- serviceRange ServiceRange @relation("ServiceRange", fields: [serviceRangeId], references: [id], onDelete: Cascade)
846
- targetAudience ServiceTargetAudience?
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
- targetAudience VenueTargetAudience?
1104
+ insurancePolicy String?
1105
+ targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
1106
+ targetAudienceId String?
886
1107
  bashesInterestedIn BashEventType[]
887
- venueLinks ServiceLink[]
1108
+ links ServiceLink[]
1109
+ User User? @relation(fields: [userId], references: [id])
1110
+ userId String?
888
1111
  }
889
1112
 
890
- enum ServiceTag {
891
- Italian
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 SubServiceType {
895
- Catering
896
- DJing
897
- LiveBand
898
- Photography
899
- Videography
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 String @id @default(cuid())
918
- startDateTime String
919
- endDateTime String
920
- venueId String?
921
- venueAvailableDateTimes Venue? @relation("AvailableDateTimes", fields: [venueId], references: [id])
922
- // venueSpecialDateTimes Venue? @relation("SpecialDateTimes", fields: [venueId], references: [id])
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 String @id @default(cuid())
1025
- serviceId String
1026
- service Service @relation(fields: [serviceId], references: [id], onDelete: Cascade)
1027
- linkId String
1028
- link Link @relation(fields: [linkId], references: [id], onDelete: Cascade)
1029
- venue Venue? @relation(fields: [venueId], references: [id])
1030
- venueId String?
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
  }
@@ -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
  };
@@ -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
- VenueTargetAudience,
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?: BashTargetAudience;
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: VenueTargetAudience;
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: ServiceTargetAudience;
149
+ targetAudience: TargetAudience;
149
150
  serviceLinks?: ServiceLinkExt[];
150
151
  venues: VenueExt[];
151
152
  }