import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Wagon } from './entities/wagon.entity';
import { Train } from '../trains/entities/train.entity';
import { Yard } from '../rule-engine/entities/yard.entity';
import { WagonsController, TrainWagonsReorderController } from './wagons.controller';
import { WagonsService } from './wagons.service';

@Module({
  imports: [TypeOrmModule.forFeature([Wagon, Train, Yard])],
  controllers: [WagonsController, TrainWagonsReorderController],
  providers: [WagonsService],
  exports: [WagonsService],
})
export class WagonsModule {}
