import { Module } from "@nestjs/common"; import { MongooseModule } from "@nestjs/mongoose"; import { DamageExpertDbService } from "src/users/entities/db-service/damage-expert.db.service"; import { ExpertModel } from "src/users/entities/schema/expert.schema"; import { HashModule } from "src/utils/hash/hash.module"; import { OtpModule } from "src/utils/otp/otp.module"; import { ExpertDbService } from "./entities/db-service/expert.db.service"; import { FieldExpertDbService } from "./entities/db-service/field-expert.db.service"; import { InsurerExpertDbService } from "./entities/db-service/insurer-expert.db.service"; import { RegistrarDbService } from "./entities/db-service/registrar.db.service"; import { UserDbService } from "./entities/db-service/user.db.service"; import { ExpertFileActivityDbService } from "./entities/db-service/expert-file-activity.db.service"; import { DamageExpertDbSchema, DamageExpertModel, } from "./entities/schema/damage-expert.schema"; import { ExpertFileActivity, ExpertFileActivitySchema, } from "./entities/schema/expert-file-activity.schema"; import { ExpertDbSchema } from "./entities/schema/expert.schema"; import { FieldExpertDbSchema, FieldExpertModel, } from "./entities/schema/field-expert.schema"; import { InsurerExpertDbSchema, InsurerExpertModel, } from "./entities/schema/insurer-expert.schema"; import { RegistrarDbSchema, RegistrarModel, } from "./entities/schema/registrar.schema"; import { UserModel, UserDbSchema } from "./entities/schema/user.schema"; @Module({ imports: [ MongooseModule.forFeature([ { name: UserModel.name, schema: UserDbSchema }, { name: DamageExpertModel.name, schema: DamageExpertDbSchema }, { name: ExpertModel.name, schema: ExpertDbSchema }, { name: FieldExpertModel.name, schema: FieldExpertDbSchema }, { name: InsurerExpertModel.name, schema: InsurerExpertDbSchema }, { name: RegistrarModel.name, schema: RegistrarDbSchema }, { name: ExpertFileActivity.name, schema: ExpertFileActivitySchema }, ]), OtpModule, HashModule, ], controllers: [], providers: [ UserDbService, ExpertDbService, DamageExpertDbService, FieldExpertDbService, InsurerExpertDbService, RegistrarDbService, ExpertFileActivityDbService, ], exports: [ UserDbService, ExpertDbService, DamageExpertDbService, FieldExpertDbService, InsurerExpertDbService, RegistrarDbService, ExpertFileActivityDbService, ], }) export class UsersModule {}