import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { ConflictCheck, ConflictCheckSchema, ClientFolder, ClientFolderSchema } from '../common/schemas'
import { ConflictChecksController } from './conflict-checks.controller'
import { ConflictChecksService } from './conflict-checks.service'
import { ClientFoldersModule } from '../client-folders/client-folders.module'

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: ConflictCheck.name, schema: ConflictCheckSchema },
      { name: ClientFolder.name, schema: ClientFolderSchema },
    ]),
    ClientFoldersModule,
  ],
  controllers: [ConflictChecksController],
  providers: [ConflictChecksService],
  exports: [ConflictChecksService],
})
export class ConflictChecksModule {}
