import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { ScheduleModule } from '@nestjs/schedule';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ChatModule } from './chat/chat.module';
import { AuthModule } from './auth/auth.module';
import { PrismaModule } from './prisma/prisma.module';
import { FeedbackModule } from './feedback/feedback.module';
import { UsersModule } from './users/users.module';
import { TimetableModule } from './timetable/timetable.module';
import { WhiteboardModule } from './whiteboard/whiteboard.module';
import { GradesModule } from './grades/grades.module';
import { SubjectsModule } from './subjects/subjects.module';
import { RoomsModule } from './rooms/rooms.module';
import { ClassroomModule } from './classroom/classroom.module';
import { MailModule } from './mail/mail.module';
import { FilesModule } from './files/files.module';
import { IotModule } from './iot/iot.module';

@Module({
  imports: [
    ConfigModule.forRoot({
      isGlobal: true,
    }),
    ScheduleModule.forRoot(),
    MailModule,
    PrismaModule, 
    AuthModule, 
    ChatModule, 
    FeedbackModule, 
    UsersModule, 
    TimetableModule, 
    WhiteboardModule, 
    GradesModule, 
    SubjectsModule, 
    RoomsModule, 
    ClassroomModule, FilesModule,
    IotModule
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
