import { Module } from '@nestjs/common';
import { InternalOpdChargesService } from './internal-opd-charges.service';
import { InternalOpdChargesController } from './internal-opd-charges.controller';
import { DynamicDatabaseService } from 'src/dynamic_db.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { InternalOpdCharge } from './entities/internal-opd-charge.entity';
import { NewBillingService } from 'src/new-billing/new-billing.service';
import { MongooseModule } from '@nestjs/mongoose';
import { transaction_details, TransactiondetailsSchema } from 'src/new-billing/entities/new-billing.entity';

@Module({
  imports: [TypeOrmModule.forFeature([InternalOpdCharge]),
  MongooseModule.forFeature([
    { name: transaction_details.name, schema: TransactiondetailsSchema },
  ]),],

  controllers: [InternalOpdChargesController],
  providers: [InternalOpdChargesService, DynamicDatabaseService, NewBillingService],
})
export class InternalOpdChargesModule { }
