feat: updateing the loading and unloading

This commit is contained in:
Nathnael
2026-08-24 14:01:19 +00:00
parent 17c2dca3cc
commit 562c8b48ba
9 changed files with 357 additions and 37 deletions

View File

@@ -179,6 +179,34 @@ export class OperationsStandard extends BaseEntity {
@Column({ name: 'default_full_trainset_wagons', type: 'int', default: 50 })
defaultFullTrainsetWagons!: number;
/**
* Standard loading-and-unloading time for a container train's stop, in hours.
*
* Null until a planner sets it, and deliberately so: the reporting spec names
* no handling standard, so an unset value reports no rate rather than judging
* a train against a guess. Same for the bulk figure below.
*/
@Column({
name: 'handling_standard_hours_container',
type: 'numeric',
precision: 6,
scale: 2,
nullable: true,
transformer: asNumber,
})
handlingStandardHoursContainer?: number | null;
/** Standard loading-and-unloading time for a bulk train's stop, in hours. */
@Column({
name: 'handling_standard_hours_bulk',
type: 'numeric',
precision: 6,
scale: 2,
nullable: true,
transformer: asNumber,
})
handlingStandardHoursBulk?: number | null;
/** IAM user id of the last operator to change a standard. */
@Column({ name: 'updated_by_id', type: 'uuid', nullable: true })
updatedById?: string | null;