import { Module, forwardRef } from '@nestjs/common';
import { EventsController } from './events.controller';
import { EventsService } from './events.service';
import { EventStatusService } from './event-status.service';
import { PrismaModule } from '../prisma/prisma.module';
import { SignalModule } from '../signal/signal.module';

@Module({
  imports: [
    PrismaModule,
    forwardRef(() => SignalModule), // forwardRef to avoid circular dependency
  ],
  controllers: [
    EventsController,
  ],
  providers: [
    EventsService,
    EventStatusService,
  ],
  exports: [
    EventsService,
    EventStatusService,
  ],
})
export class EventsModule {}
