import { Module } from '@nestjs/common';
import { RiderCordinatesController } from './rider-cordinates.controller';
import { RiderCordinatesService } from './rider-cordinates.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { RiderCordinates } from './rider-cordinates.entity';
import { ClientsModule, Transport } from '@nestjs/microservices';

@Module({
  imports: [
    TypeOrmModule.forFeature([RiderCordinates]), // Register the entity here
    ClientsModule.register([
      {
        name: 'RIDERS',
        transport: Transport.TCP,
      },
    ]),
  ],

  controllers: [RiderCordinatesController],
  providers: [RiderCordinatesService],
})
export class RiderCordinatesModule {}
