import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { UsersModule } from '../users/users.module';
import { TripsModule } from '../trips/trips.module';
import { GeofencingModule } from '../geofencing/geofencing.module';
import { GpsPoint, GpsPointSchema } from './schemas/gps-point.schema';
import { GpsStop, GpsStopSchema } from './schemas/gps-stop.schema';
import { GpsController } from './gps.controller';
import { GpsService } from './gps.service';

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: GpsPoint.name, schema: GpsPointSchema },
      { name: GpsStop.name, schema: GpsStopSchema },
    ]),
    TripsModule,
    UsersModule,
    GeofencingModule,
  ],
  controllers: [GpsController],
  providers: [GpsService],
  exports: [GpsService],
})
export class GpsModule {}
