mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Package inquiry, UAT related update
This commit is contained in:
@@ -1417,6 +1417,7 @@ model TravelPackage {
|
||||
returnSchedule TrainSchedule @relation("PackageReturn", fields: [returnScheduleId], references: [id])
|
||||
priceTiers PackagePriceTier[]
|
||||
bookings PackageBooking[]
|
||||
inquiries PackageInquiry[]
|
||||
|
||||
@@index([status, validFrom])
|
||||
@@schema("passenger")
|
||||
@@ -1434,6 +1435,7 @@ model PackagePriceTier {
|
||||
|
||||
package TravelPackage @relation(fields: [packageId], references: [id])
|
||||
bookings PackageBooking[]
|
||||
inquiries PackageInquiry[]
|
||||
|
||||
@@unique([packageId, seatType])
|
||||
@@schema("passenger")
|
||||
@@ -1501,3 +1503,24 @@ model PackagePaymentIntent {
|
||||
|
||||
@@schema("passenger")
|
||||
}
|
||||
|
||||
model PackageInquiry {
|
||||
id String @id @default(uuid())
|
||||
packageId String
|
||||
priceTierId String?
|
||||
travelerCount Int
|
||||
contactName String
|
||||
contactEmail String?
|
||||
contactPhone String?
|
||||
notes String?
|
||||
status String @default("NEW")
|
||||
enquiredAt DateTime @default(now())
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
package TravelPackage @relation(fields: [packageId], references: [id])
|
||||
priceTier PackagePriceTier? @relation(fields: [priceTierId], references: [id])
|
||||
|
||||
@@index([packageId])
|
||||
@@schema("passenger")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user