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

import { BookingsModule } from '../bookings/bookings.module';
import { FirstMile } from './entities/first-mile.entity';
import { FirstMileController } from './first-mile.controller';
import { FirstMileRepository } from './first-mile.repository';
import { FirstMileService } from './first-mile.service';

@Module({
  imports: [TypeOrmModule.forFeature([FirstMile]), BookingsModule],
  controllers: [FirstMileController],
  providers: [FirstMileRepository, FirstMileService],
  exports: [FirstMileRepository, FirstMileService],
})
export class FirstMileModule {}
