import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { MulterModule } from '@nestjs/platform-express';
import { OrdemServico } from './entities/ordem-servico.entity';
import { Avaliacao } from './entities/avaliacao.entity';
import { DocumentoVersao } from './entities/documento-versao.entity';
import { OrdensServicoController } from './ordens-servico.controller';
import { OrdensServicoService } from './ordens-servico.service';

@Module({
  imports: [
    TypeOrmModule.forFeature([OrdemServico, Avaliacao, DocumentoVersao]),
    MulterModule.register({ limits: { fileSize: 50 * 1024 * 1024 } }),
  ],
  controllers: [OrdensServicoController],
  providers: [OrdensServicoService],
  exports: [OrdensServicoService],
})
export class OrdensServicoModule {}
