import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import {
  ClassSchedule,
  Class,
  Classroom,
  ClassroomRental,
  ClassTeacher,
  AttendanceSession,
} from '../entities';
import { SchedulesService } from './schedules.service';
import { SchedulesController } from './schedules.controller';
import { OperationLogsModule } from '../operation-logs/operation-logs.module';
import { NotificationsModule } from '../notifications/notifications.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      ClassSchedule,
      Class,
      Classroom,
      ClassroomRental,
      ClassTeacher,
      AttendanceSession,
    ]),
    OperationLogsModule,
    NotificationsModule,
  ],
  controllers: [SchedulesController],
  providers: [SchedulesService],
  exports: [SchedulesService],
})
export class SchedulesModule {}
