mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 06:00:55 +00:00
booking operations and trains scheduling also allocations
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
import { BaseEntity } from '@edr/api-common';
|
||||
import { Column, Entity } from 'typeorm';
|
||||
|
||||
@Entity({ schema: 'freight', name: 'train_scheduling_global_rules' })
|
||||
export class TrainSchedulingGlobalRules extends BaseEntity {
|
||||
@Column({
|
||||
name: 'max_train_length_meters',
|
||||
type: 'numeric',
|
||||
precision: 10,
|
||||
scale: 2,
|
||||
default: 760,
|
||||
})
|
||||
maxTrainLengthMeters!: number;
|
||||
|
||||
@Column({
|
||||
name: 'max_train_weight_tons',
|
||||
type: 'numeric',
|
||||
precision: 10,
|
||||
scale: 3,
|
||||
default: 3500,
|
||||
})
|
||||
maxTrainWeightTons!: number;
|
||||
|
||||
@Column({ name: 'max_wagons_per_train', type: 'int', default: 53 })
|
||||
maxWagonsPerTrain!: number;
|
||||
|
||||
@Column({
|
||||
name: 'max_20ft_container_weight_tons',
|
||||
type: 'numeric',
|
||||
precision: 8,
|
||||
scale: 3,
|
||||
default: 30,
|
||||
})
|
||||
max20ftContainerWeightTons!: number;
|
||||
|
||||
@Column({
|
||||
name: 'max_20ft_pair_weight_diff_tons',
|
||||
type: 'numeric',
|
||||
precision: 8,
|
||||
scale: 3,
|
||||
default: 10,
|
||||
})
|
||||
max20ftPairWeightDiffTons!: number;
|
||||
}
|
||||
Reference in New Issue
Block a user