mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 12:41:04 +00:00
46 lines
1.7 KiB
TypeScript
46 lines
1.7 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
|
|
import { BookingsModule } from '../bookings/bookings.module';
|
|
import { Container } from '../container-management/entities/container.entity';
|
|
import { LocomotivesModule } from '../locomotives/locomotives.module';
|
|
import { RuleEngineModule } from '../rule-engine/rule-engine.module';
|
|
import { Locomotive } from '../locomotives/entities/locomotive.entity';
|
|
import { Route } from '../routes/entities/route.entity';
|
|
import { TrainSetWagon } from '../train-sets/entities/train-set-wagon.entity';
|
|
import { TrainSet } from '../train-sets/entities/train-set.entity';
|
|
import { TrainSetsModule } from '../train-sets/train-sets.module';
|
|
import { TrainSchedulesModule } from '../train-schedules/train-schedules.module';
|
|
import { WagonType } from '../wagon-types/entities/wagon-type.entity';
|
|
import { WagonTypesModule } from '../wagon-types/wagon-types.module';
|
|
import { Wagon } from '../wagons/entities/wagon.entity';
|
|
import { TrainSchedulingGlobalRules } from './entities/train-scheduling-global-rules.entity';
|
|
import { TrainSchedulingController } from './train-scheduling.controller';
|
|
import { TrainSchedulingService } from './train-scheduling.service';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([
|
|
Locomotive,
|
|
WagonType,
|
|
Wagon,
|
|
TrainSet,
|
|
TrainSetWagon,
|
|
Route,
|
|
Wagon,
|
|
Container,
|
|
TrainSchedulingGlobalRules,
|
|
]),
|
|
BookingsModule,
|
|
LocomotivesModule,
|
|
WagonTypesModule,
|
|
TrainSetsModule,
|
|
TrainSchedulesModule,
|
|
RuleEngineModule,
|
|
],
|
|
controllers: [TrainSchedulingController],
|
|
providers: [TrainSchedulingService],
|
|
exports: [TrainSchedulingService],
|
|
})
|
|
export class TrainSchedulingModule {}
|