import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Tenant } from './tenant.entity';
import { TenantSetting } from './tenant-setting.entity';
import { TenantMember } from './tenant-member.entity';
import { TenantController } from './tenant.controller';
import { TenantService } from './tenant.service';
import { TenantEntitySubscriber } from './tenant-entity.subscriber';

@Module({
    imports: [TypeOrmModule.forFeature([Tenant, TenantSetting, TenantMember])],
    providers: [TenantService, TenantEntitySubscriber],
    controllers: [TenantController],
    exports: [TenantService],
})
export class TenantModule { }
