import { Module } from '@nestjs/common';
import { NetworkController } from './network.controller';
import { NetworkService } from './network.service';

/**
 * Network module — cross-corp, cross-domain analytics built on the
 * visitor_id_daily / corp_id / domain_id dimensions stamped by the collector.
 *
 * No TypeOrmModule.forFeature() — the service uses raw SQL via the injected
 * DataSource because the queries span corps, domains, and raw_events with
 * window functions and recursive CTEs that don't fit a single repository.
 */
@Module({
  controllers: [NetworkController],
  providers: [NetworkService],
  exports: [NetworkService],
})
export class NetworkModule {}
