import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Student } from '../entities/student.entity';
import { Class } from '../entities/class.entity';
import { Organization } from '../entities/organization.entity';
import { ClassStudent } from '../entities/class-student.entity';
import { AttendanceRecord } from '../entities/attendance-record.entity';
import { ClassTeacher } from '../entities/class-teacher.entity';
import { StudentsService } from './students.service';
import { StudentAccessScopeFactory } from './student-access-scope.factory';
import { StudentsController } from './students.controller';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      Student,
      Class,
      ClassStudent,
      AttendanceRecord,
      Organization,
      ClassTeacher,
    ]),
  ],
  controllers: [StudentsController],
  providers: [StudentsService, StudentAccessScopeFactory],
  exports: [StudentsService, StudentAccessScopeFactory],
})
export class StudentsModule {}
