mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-31 08:27:38 +00:00
- Added TrainSetLocomotive entity to link multiple locomotives to a train set. - Updated TrainSet entity to include a OneToMany relationship with TrainSetLocomotive. - Modified the train scheduling logic to require at least two locomotives for a train set. - Enhanced the UI components to support selecting multiple locomotives. - Introduced new permissions for viewing customs clearance. - Updated migrations to create the train_set_locomotives table and backfill existing data. - Implemented utility functions for managing train numbers based on cargo type and direction. - Added tests for train number utilities to ensure correct functionality.
16 lines
682 B
TypeScript
16 lines
682 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
|
|
import { TrainSet } from './entities/train-set.entity';
|
|
import { TrainSetLocomotive } from './entities/train-set-locomotive.entity';
|
|
import { TrainSetWagon } from './entities/train-set-wagon.entity';
|
|
import { TrainSetWagonsRepository } from './train-set-wagons.repository';
|
|
import { TrainSetsRepository } from './train-sets.repository';
|
|
|
|
@Module({
|
|
imports: [TypeOrmModule.forFeature([TrainSet, TrainSetWagon, TrainSetLocomotive])],
|
|
providers: [TrainSetsRepository, TrainSetWagonsRepository],
|
|
exports: [TrainSetsRepository, TrainSetWagonsRepository],
|
|
})
|
|
export class TrainSetsModule {}
|