import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { TripsModule } from '../trips/trips.module';
import { GeofencingModule } from '../geofencing/geofencing.module';
import { Punch, PunchSchema } from './schemas/punch.schema';
import { PunchesController } from './punches.controller';
import { PunchesService } from './punches.service';

@Module({
  imports: [
    MongooseModule.forFeature([{ name: Punch.name, schema: PunchSchema }]),
    TripsModule,
    GeofencingModule,
  ],
  controllers: [PunchesController],
  providers: [PunchesService],
  exports: [PunchesService],
})
export class PunchesModule {}
