mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 21:15:41 +00:00
Adding ticket generation and booking for staff employees logic
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
-- Adds Booking.payToken/payTokenExpiresAt: an opaque, expiring token used by the
|
||||
-- reserve-seat "issue booking (passenger)" flow to let a traveler pay via an SMS'd
|
||||
-- link without needing a portal session (see GuestBookingService.issueBookingFromReservation
|
||||
-- and BookingsService.getByPayToken). Nullable — only set for reservation-issued bookings
|
||||
-- awaiting passenger payment; a normal guest/portal booking never sets it.
|
||||
|
||||
ALTER TABLE "passenger"."Booking" ADD COLUMN IF NOT EXISTS "payToken" TEXT;
|
||||
ALTER TABLE "passenger"."Booking" ADD COLUMN IF NOT EXISTS "payTokenExpiresAt" TIMESTAMP(3);
|
||||
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS "Booking_payToken_key" ON "passenger"."Booking"("payToken");
|
||||
@@ -550,6 +550,8 @@ model Booking {
|
||||
paidAt DateTime?
|
||||
paymentReminderSentAt DateTime?
|
||||
packageDepartureStationId String?
|
||||
payToken String? @unique
|
||||
payTokenExpiresAt DateTime?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
passenger Passenger @relation(fields: [passengerId], references: [id])
|
||||
|
||||
Reference in New Issue
Block a user