mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 16:28:12 +00:00
fix issue
This commit is contained in:
@@ -130,6 +130,15 @@ export class TrainSchedule extends BaseEntity {
|
||||
@Column({ name: 'planned_wagon_yards', type: 'jsonb', nullable: true })
|
||||
plannedWagonYards?: Record<string, string> | null;
|
||||
|
||||
/**
|
||||
* Where THIS departure plans to CUT (detach and leave) each consist wagon:
|
||||
* `{ wagonId: yardId }`. Sparse — a wagon absent from the map rides to the
|
||||
* schedule destination. A cap, not a promise: cargo may alight earlier, but
|
||||
* validation forbids cargo allocated past the cut.
|
||||
*/
|
||||
@Column({ name: 'planned_wagon_cut_yards', type: 'jsonb', nullable: true })
|
||||
plannedWagonCutYards?: Record<string, string> | null;
|
||||
|
||||
/** OPEN = accepting/holding bookings; FULL = train filled; CLOSED = manually closed. Orthogonal to `status`. */
|
||||
@Column({ name: 'booking_window_status', type: 'varchar', length: 10, default: 'OPEN' })
|
||||
bookingWindowStatus!: string;
|
||||
|
||||
Reference in New Issue
Block a user