import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { LegalDocument, LegalDocumentSchema, ClientFolder, ClientFolderSchema } from '../common/schemas'
import { DocumentsController } from './documents.controller'
import { DocumentsService } from './documents.service'

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: LegalDocument.name, schema: LegalDocumentSchema },
      { name: ClientFolder.name, schema: ClientFolderSchema },
    ]),
  ],
  controllers: [DocumentsController],
  providers: [DocumentsService],
  exports: [DocumentsService],
})
export class DocumentsModule {}
