import { Module } from '@nestjs/common';
import { WeightService } from './weight.service';
import { WeightController } from './weight.controller';
import { ResponseService } from "src/common/service/response.service";
import { TranslationService } from "src/common/service/translation.service";
import { JwtUtilsService } from "src/common/service/jwt.util.service";
import { User, UserSchema } from "src/user/schemas/user.schema";

import { MongooseModule } from "@nestjs/mongoose";
import { WeightLog, WeightLogSchema } from './schemas/weight.schema';


@Module({
  controllers: [WeightController],
  providers: [WeightService, ResponseService, TranslationService, JwtUtilsService],
  imports: [
    MongooseModule.forFeature([
      { name: WeightLog.name, schema: WeightLogSchema },
      { name: User.name, schema: UserSchema }
    ]),
  ],
})
export class WeightModule { }
