import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Demanda } from '../demandas/entities/demanda.entity';
import { Proposta } from '../propostas/entities/proposta.entity';
import { OrdemServico } from '../ordens-servico/entities/ordem-servico.entity';
import { OrcamentoPlanejado } from '../orcamento/entities/orcamento-planejado.entity';
import { WorkflowAprovacao } from '../workflow/entities/workflow-aprovacao.entity';
import { Alerta } from './entities/alerta.entity';
import { AuditLog } from './entities/audit-log.entity';
import { Fornecedor } from '../fornecedores/entities/fornecedor.entity';
import { Categoria } from '../categorias/entities/categoria.entity';
import { DashboardController } from './dashboard.controller';
import { DashboardService } from './dashboard.service';

@Module({
  imports: [TypeOrmModule.forFeature([Demanda, Proposta, OrdemServico, OrcamentoPlanejado, WorkflowAprovacao, Alerta, AuditLog, Fornecedor, Categoria])],
  controllers: [DashboardController],
  providers: [DashboardService],
  exports: [DashboardService],
})
export class DashboardModule {}
