import { Module } from '@nestjs/common';
import { AdminsService } from './services/admins.service';
import Admin from './entities/admin.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AdminsController } from './controllers/admins.controller';
import Permission from './entities/permission.entity';
import { PermissionService } from './services/permission.service';
import { PermissionsController } from './controllers/permissions.controller';
import { GenerateKey } from './entities/generate-key.entity';
import { GenerateKeysController } from './controllers/generate-keys.controller';
import { GenerateKeysService } from './services/generate-key.service';

@Module({
  imports: [TypeOrmModule.forFeature([Admin, Permission, GenerateKey])],
  providers: [AdminsService, PermissionService, GenerateKeysService],
  exports: [AdminsService, PermissionService, GenerateKeysService],
  controllers: [
    AdminsController,
    PermissionsController,
    GenerateKeysController,
  ],
})
export class AdminsModule {}
