fix: ( bookings ) make BookingSeat.scheduleId optional to fix P2032 on booking read

This commit is contained in:
Abubeker Yasin
2026-07-21 11:57:03 +03:00
parent d4b8e9a564
commit f39aad1d7f

View File

@@ -580,7 +580,7 @@ model BookingSeat {
bookingId String
seatId String
leg Int @default(1) // 1=outbound/leg-1, 2=return/leg-2
scheduleId String // which schedule this seat belongs to
scheduleId String? // which schedule this seat belongs to
passengerName String
dateOfBirth DateTime?
passengerCategory PassengerCategory @default(ADULT)