import { Module } from "@nestjs/common";
import { BuddiesService } from "./buddies.service";
import { BuddiesController } from "./buddies.controller";
import { MongooseModule } from "@nestjs/mongoose";
import { ResponseService } from "src/common/service/response.service";
import { User, UserSchema } from "src/user/schemas/user.schema";
import { TranslationService } from "src/common/service/translation.service";
import {
  TrainingHomeGym,
  TrainingHomeGymDocument,
  TrainingHomeGymSchema,
} from "src/training/schemas/training-homegym.schema";
import { JwtUtilsService } from "src/common/service/jwt.util.service";
import {
  BuddyRequest,
  BuddyRequestSchema,
} from "./schema/buddy-requests.schema";
import {
  City,
  CityDocument,
  CitySchema,
} from "src/training/schemas/cities.schema";

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: User.name, schema: UserSchema },
      { name: City.name, schema: CitySchema },
      { name: BuddyRequest.name, schema: BuddyRequestSchema },
      { name: TrainingHomeGym.name, schema: TrainingHomeGymSchema },
    ]),
  ],
  controllers: [BuddiesController],
  providers: [
    BuddiesService,
    ResponseService,
    TranslationService,
    JwtUtilsService,
  ],
})
export class BuddiesModule {}
