@bash-app/bash-common 29.18.9 → 29.18.10
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 +54 -55
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -187,60 +187,60 @@ model Invitation {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
model BashEvent {
|
|
190
|
-
id
|
|
191
|
-
title
|
|
192
|
-
creatorId
|
|
193
|
-
creator
|
|
194
|
-
description
|
|
195
|
-
eventType
|
|
196
|
-
startDateTime
|
|
197
|
-
endDateTime
|
|
198
|
-
ticketTiers
|
|
199
|
-
targetAudienceId
|
|
200
|
-
targetAudience
|
|
201
|
-
amountOfGuestsId
|
|
202
|
-
amountOfGuests
|
|
203
|
-
recurrence
|
|
204
|
-
vibe
|
|
205
|
-
occasion
|
|
206
|
-
dress
|
|
207
|
-
allowed
|
|
208
|
-
notAllowed
|
|
209
|
-
nonProfit
|
|
210
|
-
nonProfitId
|
|
211
|
-
privacy
|
|
212
|
-
tickets
|
|
213
|
-
reviews
|
|
214
|
-
sponsorships
|
|
215
|
-
investments
|
|
216
|
-
capacity
|
|
217
|
-
location
|
|
218
|
-
status
|
|
219
|
-
tags
|
|
220
|
-
coverPhoto
|
|
221
|
-
media
|
|
222
|
-
club
|
|
223
|
-
clubId
|
|
224
|
-
links
|
|
225
|
-
competitions
|
|
226
|
-
invitations
|
|
227
|
-
dateTimePublished
|
|
228
|
-
comments
|
|
229
|
-
includedItems
|
|
230
|
-
associatedBashesReferencingMe
|
|
190
|
+
id String @id @default(cuid())
|
|
191
|
+
title String
|
|
192
|
+
creatorId String
|
|
193
|
+
creator User @relation("CreatedEvent", fields: [creatorId], references: [id], onDelete: Cascade)
|
|
194
|
+
description String?
|
|
195
|
+
eventType String @default("Other")
|
|
196
|
+
startDateTime DateTime? @default(now())
|
|
197
|
+
endDateTime DateTime? @default(now())
|
|
198
|
+
ticketTiers TicketTier[]
|
|
199
|
+
targetAudienceId String? @unique
|
|
200
|
+
targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id], onDelete: Cascade)
|
|
201
|
+
amountOfGuestsId String? @unique
|
|
202
|
+
amountOfGuests AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id], onDelete: Cascade)
|
|
203
|
+
recurrence Recurrence?
|
|
204
|
+
vibe String?
|
|
205
|
+
occasion String?
|
|
206
|
+
dress String?
|
|
207
|
+
allowed String?
|
|
208
|
+
notAllowed String?
|
|
209
|
+
nonProfit Boolean?
|
|
210
|
+
nonProfitId String?
|
|
211
|
+
privacy Privacy @default(Public)
|
|
212
|
+
tickets Ticket[]
|
|
213
|
+
reviews Review[]
|
|
214
|
+
sponsorships SponsoredEvent[]
|
|
215
|
+
investments Investment[]
|
|
216
|
+
capacity Int?
|
|
217
|
+
location String?
|
|
218
|
+
status BashStatus @default(Draft)
|
|
219
|
+
tags String[]
|
|
220
|
+
coverPhoto String?
|
|
221
|
+
media Media[]
|
|
222
|
+
club Club? @relation(fields: [clubId], references: [id], onDelete: SetNull)
|
|
223
|
+
clubId String?
|
|
224
|
+
links EventLink[]
|
|
225
|
+
competitions Competition[]
|
|
226
|
+
invitations Invitation[]
|
|
227
|
+
dateTimePublished DateTime?
|
|
228
|
+
comments BashComment[]
|
|
229
|
+
includedItems String[]
|
|
230
|
+
associatedBashesReferencingMe AssociatedBash[] //maybe rename later to AssociatedWithABash
|
|
231
231
|
associatedServicesReferencingMe Service[] //maybe rename later to AssociatedWithAService
|
|
232
|
-
bashNotificationsReferencingMe
|
|
233
|
-
checkouts
|
|
234
|
-
eventTasks
|
|
235
|
-
videoLink
|
|
236
|
-
subtitle
|
|
237
|
-
isFeatured
|
|
238
|
-
isTrending
|
|
239
|
-
coordinates
|
|
232
|
+
bashNotificationsReferencingMe BashNotification[]
|
|
233
|
+
checkouts Checkout[]
|
|
234
|
+
eventTasks EventTask[]
|
|
235
|
+
videoLink String?
|
|
236
|
+
subtitle String?
|
|
237
|
+
isFeatured Boolean?
|
|
238
|
+
isTrending Boolean?
|
|
239
|
+
coordinates Coordinates[] // A BashEvent can have multiple sets of coordinates
|
|
240
240
|
// stripeAccount StripeAccount[]
|
|
241
|
-
rate
|
|
242
|
-
venueId
|
|
243
|
-
venue
|
|
241
|
+
rate Rate[]
|
|
242
|
+
venueId String? // Nullable, meaning it's optional
|
|
243
|
+
venue Venue? @relation(fields: [venueId], references: [id])
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
model Coordinates {
|
|
@@ -928,10 +928,9 @@ model AssociatedBash {
|
|
|
928
928
|
owner User? @relation(fields: [ownerUserId], references: [id], onDelete: Cascade)
|
|
929
929
|
isOrganizer Boolean?
|
|
930
930
|
isFavorite Boolean?
|
|
931
|
-
service
|
|
931
|
+
service Service[]
|
|
932
932
|
|
|
933
933
|
@@unique([ownerEmail, bashEventId])
|
|
934
|
-
|
|
935
934
|
}
|
|
936
935
|
|
|
937
936
|
//anyone that is invited to be an organizer of a service profile or is the creator/owner...for having others edit or post about a service in the bashfeed (but the service must be associated with a bash to post)
|
|
@@ -969,7 +968,7 @@ model Service {
|
|
|
969
968
|
createdAt DateTime @default(now())
|
|
970
969
|
updatedAt DateTime @updatedAt
|
|
971
970
|
|
|
972
|
-
associatedBashesReferencingMe
|
|
971
|
+
associatedBashesReferencingMe AssociatedBash[]
|
|
973
972
|
associatedServicesReferencingMe AssociatedService[]
|
|
974
973
|
|
|
975
974
|
serviceName String?
|