import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { PositionsController } from './positions.controller'
import { HotPosition, HotPositionSchema } from './positions.schema'
import { User, UserSchema } from '../user/user.schema'

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: HotPosition.name, schema: HotPositionSchema },
      { name: User.name, schema: UserSchema },
    ]),
  ],
  controllers: [PositionsController],
})
export class PositionsModule {}
