import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { MemberController } from './member.controller'
import { User, UserSchema } from '../user/user.schema'
import { UserModule } from '../user/user.module'
import { PaymentOrder, PaymentOrderSchema } from '../payment/payment-order.schema'

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: User.name, schema: UserSchema },
      { name: PaymentOrder.name, schema: PaymentOrderSchema },
    ]),
    UserModule,
  ],
  controllers: [MemberController],
})
export class MemberModule {}
