import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { Expense, ExpenseSchema } from '../common/schemas'
import { ExpensesService } from './expenses.service'
import { ExpensesController } from './expenses.controller'

@Module({
  imports: [MongooseModule.forFeature([{ name: Expense.name, schema: ExpenseSchema }])],
  controllers: [ExpensesController],
  providers: [ExpensesService],
  exports: [ExpensesService],
})
export class ExpensesModule {}
