reservation implementation
This commit is contained in:
@@ -422,6 +422,8 @@ enum NotificationType {
|
||||
BOOKING_CANCELLED
|
||||
PAYMENT_RECEIVED
|
||||
PAYMENT_FAILED
|
||||
DOCUMENTS_REQUIRED
|
||||
PAYMENT_REQUIRED
|
||||
SUBSCRIPTION_TRIAL_ENDING
|
||||
SUBSCRIPTION_SUSPENDED
|
||||
VEHICLE_MAINTENANCE_DUE
|
||||
@@ -1293,6 +1295,7 @@ model Reservation {
|
||||
notes String?
|
||||
cancelReason String?
|
||||
cancelledBy CancelledBy?
|
||||
bookingReference String? @unique
|
||||
contractNumber String? @unique
|
||||
invoiceNumber String? @unique
|
||||
reviewToken String? @unique
|
||||
@@ -1345,6 +1348,26 @@ model ReservationPublicAccess {
|
||||
@@map("reservation_public_access")
|
||||
}
|
||||
|
||||
model MarketplaceFunnelEvent {
|
||||
id String @id @default(cuid())
|
||||
eventName String
|
||||
companyId String?
|
||||
companySlug String
|
||||
vehicleId String
|
||||
renterId String?
|
||||
sessionId String?
|
||||
path String?
|
||||
metadata Json @default("{}")
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
@@index([eventName, createdAt])
|
||||
@@index([companyId, createdAt])
|
||||
@@index([companySlug, createdAt])
|
||||
@@index([vehicleId, createdAt])
|
||||
@@index([renterId, createdAt])
|
||||
@@map("marketplace_funnel_events")
|
||||
}
|
||||
|
||||
|
||||
model WebhookEvent {
|
||||
id String @id @default(cuid())
|
||||
|
||||
Reference in New Issue
Block a user