import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ModuleEntity } from './entities/modules.entity';
import { ModulesService } from './modules.service';
import { ModulesController } from './modules.controller';
import { UserEntity } from '../user/entities/user.entity';

@Module({
  imports: [TypeOrmModule.forFeature([ModuleEntity, UserEntity])],
  controllers: [ModulesController],
  providers: [ModulesService],
  exports: [ModulesService, TypeOrmModule],
})
export class ModulesModule {}
