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 { FamilyMember } from '../../database/entities/family-member.entity';
import { PatternAnalysisService } from './pattern-analysis.service';
import { PredictionService } from './prediction.service';
import { ReportService } from './report.service';
import { ComparisonService } from './comparison.service';
import { AdvancedPatternService } from './advanced-pattern.service';
import { GrowthPercentileService } from './growth-percentile.service';
import { AnalyticsController } from './analytics.controller';
import { InsightsController } from './insights.controller';

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