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

import { TrainScheduleBooking } from './entities/train-schedule-booking.entity';
import { TrainSchedule } from './entities/train-schedule.entity';
import { WagonBookingAllocation } from './entities/wagon-booking-allocation.entity';
import { TrainScheduleBookingsRepository } from './train-schedule-bookings.repository';
import { TrainSchedulesRepository } from './train-schedules.repository';
import { WagonBookingAllocationsRepository } from './wagon-booking-allocations.repository';

@Module({
  imports: [TypeOrmModule.forFeature([TrainSchedule, TrainScheduleBooking, WagonBookingAllocation])],
  providers: [
    TrainSchedulesRepository,
    TrainScheduleBookingsRepository,
    WagonBookingAllocationsRepository,
  ],
  exports: [
    TrainSchedulesRepository,
    TrainScheduleBookingsRepository,
    WagonBookingAllocationsRepository,
  ],
})
export class TrainSchedulesModule {}
