import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Activity } from '../../database/entities/activity.entity';
import { Child } from '../../database/entities/child.entity';
import { PatternAnalysisService } from './pattern-analysis.service';
import { PredictionService } from './prediction.service';
import { ReportService } from './report.service';
import { AnalyticsController } from './analytics.controller';
import { InsightsController } from './insights.controller';

@Module({
  imports: [TypeOrmModule.forFeature([Activity, Child])],
  controllers: [AnalyticsController, InsightsController],
  providers: [PatternAnalysisService, PredictionService, ReportService],
  exports: [PatternAnalysisService, PredictionService, ReportService],
})
export class AnalyticsModule {}
