import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { TrustAccount, TrustAccountSchema, TrustTransaction, TrustTransactionSchema } from '../common/schemas'
import { TrustService } from './trust.service'
import { TrustController } from './trust.controller'

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: TrustAccount.name,     schema: TrustAccountSchema },
      { name: TrustTransaction.name, schema: TrustTransactionSchema },
    ]),
  ],
  controllers: [TrustController],
  providers: [TrustService],
  exports: [TrustService],
})
export class TrustModule {}
