@bash-app/bash-common 17.0.0 → 17.2.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 +36 -35
- package/src/extendedSchemas.ts +3 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -528,8 +528,7 @@ model VenueTargetAudience {
|
|
|
528
528
|
occupation Occupation @default(NoPreference)
|
|
529
529
|
education Education @default(NoPreference)
|
|
530
530
|
showOnDetailPage Boolean @default(true)
|
|
531
|
-
|
|
532
|
-
venueId String?
|
|
531
|
+
venue Venue? @relation("VenueTargetAudience")
|
|
533
532
|
}
|
|
534
533
|
|
|
535
534
|
enum AgeRange {
|
|
@@ -847,40 +846,42 @@ model Service {
|
|
|
847
846
|
}
|
|
848
847
|
|
|
849
848
|
model Venue {
|
|
850
|
-
id
|
|
851
|
-
service
|
|
852
|
-
serviceId
|
|
853
|
-
venueName
|
|
854
|
-
email
|
|
855
|
-
streetAddress
|
|
856
|
-
city
|
|
857
|
-
state
|
|
858
|
-
postalCode
|
|
859
|
-
country
|
|
860
|
-
phone
|
|
861
|
-
coverPhoto
|
|
862
|
-
media
|
|
863
|
-
visibility
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
849
|
+
id String @id @default(cuid())
|
|
850
|
+
service Service? @relation(fields: [serviceId], references: [id])
|
|
851
|
+
serviceId String?
|
|
852
|
+
venueName String
|
|
853
|
+
email String
|
|
854
|
+
streetAddress String
|
|
855
|
+
city String
|
|
856
|
+
state String
|
|
857
|
+
postalCode String
|
|
858
|
+
country String
|
|
859
|
+
phone String
|
|
860
|
+
coverPhoto String?
|
|
861
|
+
media Media[]
|
|
862
|
+
visibility VisibilityPreference @default(Public)
|
|
863
|
+
yearsInBusiness YearsOfExperience
|
|
864
|
+
capacity Int?
|
|
865
|
+
amenities String[]
|
|
866
|
+
additionalInfo String?
|
|
867
|
+
features String[]
|
|
868
|
+
venueTypes String[]
|
|
869
|
+
availableDateTimes Availability[] @relation("AvailableDateTimes")
|
|
870
870
|
// specialDateTimes Availability[] @relation("SpecialDateTimes")
|
|
871
|
-
mission
|
|
872
|
-
pitch
|
|
873
|
-
communityInvolvement
|
|
874
|
-
emergencyContact
|
|
875
|
-
contactDetails
|
|
876
|
-
rates
|
|
877
|
-
cancellationPolicy
|
|
878
|
-
refundPolicy
|
|
879
|
-
safetyPolicy
|
|
880
|
-
crowdSizeId
|
|
881
|
-
crowdSize
|
|
882
|
-
targetAudience
|
|
883
|
-
bashesInterestedIn
|
|
871
|
+
mission String?
|
|
872
|
+
pitch String?
|
|
873
|
+
communityInvolvement String?
|
|
874
|
+
emergencyContact String?
|
|
875
|
+
contactDetails String?
|
|
876
|
+
rates String?
|
|
877
|
+
cancellationPolicy String?
|
|
878
|
+
refundPolicy String?
|
|
879
|
+
safetyPolicy String?
|
|
880
|
+
crowdSizeId String @unique
|
|
881
|
+
crowdSize ServiceRange @relation("CrowdSize", fields: [crowdSizeId], references: [id], onDelete: Cascade)
|
|
882
|
+
targetAudience VenueTargetAudience @relation("VenueTargetAudience", fields: [venueTargetAudienceId], references: [id])
|
|
883
|
+
bashesInterestedIn BashEventType[]
|
|
884
|
+
venueTargetAudienceId String @unique
|
|
884
885
|
}
|
|
885
886
|
|
|
886
887
|
enum ServiceTag {
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
Checkout,
|
|
15
15
|
ServiceLink,
|
|
16
16
|
Link, Venue, Availability,
|
|
17
|
+
VenueTargetAudience,
|
|
17
18
|
} from "@prisma/client";
|
|
18
19
|
|
|
19
20
|
export const FRONT_END_USER_DATA_TO_SELECT = {
|
|
@@ -125,11 +126,13 @@ export const BASH_EVENT_DATA_TO_REMOVE: RemoveCommonProperties<BashEvent, BashEv
|
|
|
125
126
|
export interface VenueExt extends Venue {
|
|
126
127
|
service: Service;
|
|
127
128
|
availableDateTimes: Availability[];
|
|
129
|
+
targetAudience: VenueTargetAudience;
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
export const VENUE_DATA_TO_INCLUDE = {
|
|
131
133
|
service: true,
|
|
132
134
|
availableDateTimes: true,
|
|
135
|
+
targetAudience: true,
|
|
133
136
|
}
|
|
134
137
|
|
|
135
138
|
export interface ServiceExt extends Service {
|