Merge branch 'dev' into reschedule

This commit is contained in:
Abubeker Yasin
2026-08-28 16:36:51 +03:00
637 changed files with 53614 additions and 8442 deletions

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "TrainSchedule" ADD COLUMN IF NOT EXISTS "isGroupBookingOnly" BOOLEAN NOT NULL DEFAULT false;

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "TravelPackage" ADD COLUMN IF NOT EXISTS "imageUrl" TEXT;

View File

@@ -373,6 +373,7 @@ model TrainSchedule {
carbonRating String @default("A")
notes String?
isPackageOnly Boolean @default(false)
isGroupBookingOnly Boolean @default(false)
train Train @relation(fields: [trainId], references: [id])
route Route? @relation(fields: [routeId], references: [id])
originStation Station @relation("OriginTrips", fields: [originStationId], references: [id])
@@ -1586,6 +1587,7 @@ model TravelPackage {
code String @unique
name String
description String?
imageUrl String?
status PackageStatus @default(DRAFT)
outboundScheduleId String
returnScheduleId String