import { Global, Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { AuditLogController } from './audit-log.controller'; import { AuditLogEntity } from './audit-log.entity'; import { AuditLogService } from './audit-log.service'; @Global() @Module({ imports: [TypeOrmModule.forFeature([AuditLogEntity])], controllers: [AuditLogController], exports: [AuditLogService], providers: [AuditLogService], }) export class AuditLogModule {}