import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Student } from '../entities/student.entity';
import { StudentProfile } from '../entities/student-profile.entity';
import { StudentEnrollment } from '../entities/student-enrollment.entity';
import { ExamScore } from '../entities/exam-score.entity';
import { LearningRecord } from '../entities/learning-record.entity';
import { ResultArchive } from '../entities/result-archive.entity';
import { ArchiveAttachment } from '../entities/archive-attachment.entity';
import { AttendanceRecord } from '../entities/attendance-record.entity';
import { NotificationsModule } from '../notifications/notifications.module';
import { ArchiveService } from './archive.service';
import { ArchiveReportService } from './archive-report.service';
import { ArchiveController } from './archive.controller';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      Student,
      StudentProfile,
      StudentEnrollment,
      ExamScore,
      LearningRecord,
      ResultArchive,
      ArchiveAttachment,
      AttendanceRecord,
    ]),
    NotificationsModule,
  ],
  controllers: [ArchiveController],
  providers: [ArchiveService, ArchiveReportService],
  exports: [ArchiveService],
})
export class ArchiveModule {}
