import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { InterchangeDocumentItem } from './entities/interchange-document-item.entity';
import { InterchangeDocument } from './entities/interchange-document.entity';
import { InterchangeDocumentsController } from './interchange-documents.controller';
import { InterchangeDocumentsRepository } from './interchange-documents.repository';
import { InterchangeDocumentsService } from './interchange-documents.service';

@Module({
  imports: [TypeOrmModule.forFeature([InterchangeDocument, InterchangeDocumentItem])],
  controllers: [InterchangeDocumentsController],
  providers: [InterchangeDocumentsRepository, InterchangeDocumentsService],
  exports: [InterchangeDocumentsService],
})
export class InterchangeDocumentsModule {}
