import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { Hearing, HearingSchema } from '../common/schemas'
import { HearingsController } from './hearings.controller'
import { HearingsService } from './hearings.service'

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: Hearing.name, schema: HearingSchema },
    ]),
  ],
  controllers: [HearingsController],
  providers: [HearingsService],
  exports: [HearingsService],
})
export class HearingsModule {}
