// apps/edr-freight-api/src/modules/trains/trains.module.ts
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { TrainLocomotive } from './entities/train-locomotive.entity';
import { Train } from './entities/train.entity';
import { TrainBuilderController } from './train-builder.controller';
import { TrainBuilderService } from './train-builder.service';
import { TrainsController } from './trains.controller';
import { TrainsService } from './trains.service';

@Module({
  imports: [TypeOrmModule.forFeature([Train, TrainLocomotive])],
  controllers: [TrainsController, TrainBuilderController],
  providers: [TrainsService, TrainBuilderService],
  exports: [TrainsService, TrainBuilderService],
})
export class TrainsModule {}
