import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { ClientFolder, ClientFolderSchema, ConflictCheck, ConflictCheckSchema, LegalDocument, LegalDocumentSchema, Matter, MatterSchema } from '../common/schemas'
import { ClientFoldersController } from './client-folders.controller'
import { ClientFoldersService } from './client-folders.service'
import { MigrateService } from './migrate.service'

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: ClientFolder.name, schema: ClientFolderSchema },
      { name: ConflictCheck.name, schema: ConflictCheckSchema },
      { name: LegalDocument.name, schema: LegalDocumentSchema },
      { name: Matter.name, schema: MatterSchema },
    ]),
  ],
  controllers: [ClientFoldersController],
  providers: [ClientFoldersService, MigrateService],
  exports: [ClientFoldersService],
})
export class ClientFoldersModule {}
