import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { TrainSet } from './entities/train-set.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])],
  providers: [TrainSetsRepository, TrainSetWagonsRepository],
  exports: [TrainSetsRepository, TrainSetWagonsRepository],
})
export class TrainSetsModule {}
