import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { ContributionController } from './contribution.controller'
import { Contribution, ContributionSchema } from '../schemas/contribution.schema'
import { CompanyBank, CompanyBankSchema } from '../schemas/company-bank.schema'

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: Contribution.name, schema: ContributionSchema },
      { name: CompanyBank.name, schema: CompanyBankSchema },
    ]),
  ],
  controllers: [ContributionController],
})
export class ContributionModule {}