import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import {
  Matter, MatterSchema,
  ClientFolder, ClientFolderSchema,
  LegalDocument, LegalDocumentSchema,
} from '../common/schemas'
import { FormTemplatesModule } from '../form-templates/form-templates.module'
import { MatterDeadlinesModule } from '../matter-deadlines/matter-deadlines.module'
import { AnnualComplianceService } from './annual-compliance.service'
import { AnnualComplianceController } from './annual-compliance.controller'

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: Matter.name,        schema: MatterSchema },
      { name: ClientFolder.name,  schema: ClientFolderSchema },
      { name: LegalDocument.name, schema: LegalDocumentSchema },
    ]),
    FormTemplatesModule,
    MatterDeadlinesModule,
  ],
  controllers: [AnnualComplianceController],
  providers:   [AnnualComplianceService],
  exports:     [AnnualComplianceService],
})
export class AnnualComplianceModule {}
