@bash-app/bash-common 30.121.1 → 30.122.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 +63 -63
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -959,7 +959,7 @@ model TicketTier {
|
|
|
959
959
|
}
|
|
960
960
|
|
|
961
961
|
model Ticket {
|
|
962
|
-
id String
|
|
962
|
+
id String @id @default(cuid())
|
|
963
963
|
ownerId String
|
|
964
964
|
bashEventId String
|
|
965
965
|
ticketTierId String?
|
|
@@ -969,42 +969,42 @@ model Ticket {
|
|
|
969
969
|
email String?
|
|
970
970
|
paidOn DateTime?
|
|
971
971
|
allowPromiseToPay Boolean?
|
|
972
|
-
status TicketStatus
|
|
972
|
+
status TicketStatus @default(Pending)
|
|
973
973
|
isFreeGuest Boolean?
|
|
974
974
|
geoFenceCheckInUnnecessary Boolean?
|
|
975
975
|
checkedInAt DateTime?
|
|
976
976
|
checkedOutAt DateTime?
|
|
977
977
|
invitationId String?
|
|
978
978
|
checkoutId String?
|
|
979
|
-
checkedInMethod String?
|
|
979
|
+
checkedInMethod String? @default("manual")
|
|
980
980
|
waitlistPosition Int?
|
|
981
981
|
waitlistJoinedAt DateTime?
|
|
982
982
|
waitlistNotifiedAt DateTime?
|
|
983
983
|
waitlistExpiresAt DateTime?
|
|
984
984
|
checkInLocation String?
|
|
985
985
|
checkOutLocation String?
|
|
986
|
-
checkOutMethod String?
|
|
986
|
+
checkOutMethod String? @default("manual")
|
|
987
987
|
lastLocationUpdate DateTime?
|
|
988
|
-
validationAttempts Int
|
|
988
|
+
validationAttempts Int @default(0)
|
|
989
989
|
lastValidationAttempt DateTime?
|
|
990
990
|
lastValidatedBy String?
|
|
991
991
|
waitlistUserId String?
|
|
992
|
-
|
|
992
|
+
|
|
993
993
|
// BashPoints Purchase Tracking
|
|
994
994
|
purchaseType String? // "USD", "BashPoints", "Free", "Comp"
|
|
995
|
-
pointsPaid Int?
|
|
995
|
+
pointsPaid Int? // BashPoints amount paid (if purchaseType="BashPoints")
|
|
996
996
|
stripePurchaseId String? // Stripe payment ID (if purchaseType="USD")
|
|
997
|
-
|
|
998
|
-
bashEvent
|
|
999
|
-
checkout
|
|
1000
|
-
forUser
|
|
1001
|
-
invitation
|
|
1002
|
-
owner
|
|
1003
|
-
ticketTier
|
|
1004
|
-
waitlistUser
|
|
1005
|
-
metadata
|
|
1006
|
-
transfers
|
|
1007
|
-
appliedDiscounts
|
|
997
|
+
|
|
998
|
+
bashEvent BashEvent @relation(fields: [bashEventId], references: [id])
|
|
999
|
+
checkout Checkout? @relation(fields: [checkoutId], references: [id])
|
|
1000
|
+
forUser User? @relation("TicketsISent", fields: [forUserId], references: [id])
|
|
1001
|
+
invitation Invitation? @relation("TicketsForInvitation", fields: [invitationId], references: [id])
|
|
1002
|
+
owner User @relation("TicketsIOwn", fields: [ownerId], references: [id])
|
|
1003
|
+
ticketTier TicketTier? @relation(fields: [ticketTierId], references: [id])
|
|
1004
|
+
waitlistUser User? @relation("TicketsOnWaitlist", fields: [waitlistUserId], references: [id])
|
|
1005
|
+
metadata TicketMetadata[]
|
|
1006
|
+
transfers TicketTransfer[]
|
|
1007
|
+
appliedDiscounts AppliedDiscount[] // NEW - Discounts applied to this ticket
|
|
1008
1008
|
|
|
1009
1009
|
@@index([bashEventId])
|
|
1010
1010
|
@@index([waitlistUserId])
|
|
@@ -1399,12 +1399,12 @@ model User {
|
|
|
1399
1399
|
fcmTokens String[] @default([]) // Firebase Cloud Messaging tokens for push notifications
|
|
1400
1400
|
|
|
1401
1401
|
// BashPoints System Fields
|
|
1402
|
-
bashPointsBalance
|
|
1403
|
-
bashPointsEarnedLifetime
|
|
1404
|
-
bashPointsSpentLifetime
|
|
1405
|
-
bashPointsReferralCode
|
|
1406
|
-
referredById
|
|
1407
|
-
referralPurchaseCredited
|
|
1402
|
+
bashPointsBalance Int @default(0)
|
|
1403
|
+
bashPointsEarnedLifetime Int @default(0)
|
|
1404
|
+
bashPointsSpentLifetime Int @default(0)
|
|
1405
|
+
bashPointsReferralCode String? @unique
|
|
1406
|
+
referredById String?
|
|
1407
|
+
referralPurchaseCredited Boolean @default(false)
|
|
1408
1408
|
|
|
1409
1409
|
// Security Fields
|
|
1410
1410
|
accountLockedUntil DateTime? // Account lockout timestamp for failed login protection
|
|
@@ -2305,9 +2305,9 @@ model Exhibitor {
|
|
|
2305
2305
|
pricingNotes String? // Additional pricing details or terms
|
|
2306
2306
|
|
|
2307
2307
|
// Policy Fields
|
|
2308
|
-
cancellationPolicy
|
|
2309
|
-
paymentTerms
|
|
2310
|
-
setupRequirements
|
|
2308
|
+
cancellationPolicy String? // Exhibitor cancellation policy
|
|
2309
|
+
paymentTerms String? // Payment terms and conditions
|
|
2310
|
+
setupRequirements String? // Setup and breakdown requirements
|
|
2311
2311
|
|
|
2312
2312
|
crowdSize AmountOfGuests? @relation(fields: [crowdSizeId], references: [id], onDelete: Cascade)
|
|
2313
2313
|
serviceRange ServiceRange? @relation(fields: [serviceRangeId], references: [id])
|
|
@@ -2845,43 +2845,43 @@ model ServiceBookingCheckout {
|
|
|
2845
2845
|
}
|
|
2846
2846
|
|
|
2847
2847
|
model ServiceBooking {
|
|
2848
|
-
id
|
|
2849
|
-
creatorId
|
|
2850
|
-
forUserId
|
|
2851
|
-
daysTotalATBCents
|
|
2852
|
-
serviceId
|
|
2853
|
-
rateOption
|
|
2854
|
-
flatRateCents
|
|
2855
|
-
status
|
|
2856
|
-
bookingType
|
|
2857
|
-
timezone
|
|
2858
|
-
requestedOn
|
|
2859
|
-
requestDecisionOn
|
|
2860
|
-
bookedOn
|
|
2861
|
-
canceledOn
|
|
2862
|
-
isFreeGuest
|
|
2863
|
-
allowPromiseToPay
|
|
2864
|
-
totalATBCents
|
|
2865
|
-
subtotalATBCents
|
|
2866
|
-
bashEventId
|
|
2867
|
-
isVendorBid
|
|
2868
|
-
vendorBidAmountCents
|
|
2869
|
-
vendorEventDetails
|
|
2870
|
-
bashPointsApplied
|
|
2848
|
+
id String @id @default(cuid())
|
|
2849
|
+
creatorId String
|
|
2850
|
+
forUserId String
|
|
2851
|
+
daysTotalATBCents Int
|
|
2852
|
+
serviceId String
|
|
2853
|
+
rateOption ServiceBookingRateOption @default(TimeBased)
|
|
2854
|
+
flatRateCents Int?
|
|
2855
|
+
status ServiceBookingStatus @default(Pending)
|
|
2856
|
+
bookingType ServiceBookingType @default(Request)
|
|
2857
|
+
timezone String
|
|
2858
|
+
requestedOn DateTime?
|
|
2859
|
+
requestDecisionOn DateTime?
|
|
2860
|
+
bookedOn DateTime?
|
|
2861
|
+
canceledOn DateTime?
|
|
2862
|
+
isFreeGuest Boolean @default(false)
|
|
2863
|
+
allowPromiseToPay Boolean @default(false)
|
|
2864
|
+
totalATBCents Int
|
|
2865
|
+
subtotalATBCents Int @default(0)
|
|
2866
|
+
bashEventId String?
|
|
2867
|
+
isVendorBid Boolean @default(false)
|
|
2868
|
+
vendorBidAmountCents Int?
|
|
2869
|
+
vendorEventDetails String?
|
|
2870
|
+
bashPointsApplied Int? // BashPoints credits applied to this booking
|
|
2871
2871
|
bashPointsTransactionId String? // Link to BashCreditTransaction
|
|
2872
|
-
notification
|
|
2873
|
-
bashEvent
|
|
2874
|
-
creator
|
|
2875
|
-
forUser
|
|
2876
|
-
service
|
|
2877
|
-
addOns
|
|
2878
|
-
checkout
|
|
2879
|
-
bookedDays
|
|
2880
|
-
additionalFees
|
|
2881
|
-
messages
|
|
2882
|
-
packages
|
|
2883
|
-
commissions
|
|
2884
|
-
sentReminders
|
|
2872
|
+
notification Notification[]
|
|
2873
|
+
bashEvent BashEvent? @relation(fields: [bashEventId], references: [id])
|
|
2874
|
+
creator User @relation("BookingCreator", fields: [creatorId], references: [id])
|
|
2875
|
+
forUser User @relation("BookingForUser", fields: [forUserId], references: [id])
|
|
2876
|
+
service Service @relation(fields: [serviceId], references: [id])
|
|
2877
|
+
addOns ServiceBookingAddOn[]
|
|
2878
|
+
checkout ServiceBookingCheckout?
|
|
2879
|
+
bookedDays ServiceBookingDay[]
|
|
2880
|
+
additionalFees ServiceBookingFee[]
|
|
2881
|
+
messages ServiceBookingMessage[]
|
|
2882
|
+
packages ServiceBookingPackage[]
|
|
2883
|
+
commissions BookingCommission[] @relation("BookingCommissions")
|
|
2884
|
+
sentReminders SentReminder[]
|
|
2885
2885
|
|
|
2886
2886
|
@@index([status])
|
|
2887
2887
|
@@index([creatorId])
|