import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { RoleAccessEntity } from './entities/role_access.entity';
import { RoleAccessService } from './role_access.service';
import { RoleAccessController } from './role_access.controller';
import { UserEntity } from '../user/entities/user.entity';

@Module({
  imports: [TypeOrmModule.forFeature([RoleAccessEntity, UserEntity])],
  controllers: [RoleAccessController],
  providers: [RoleAccessService],
  exports: [RoleAccessService, TypeOrmModule],
})
export class RoleAccessModule {}
