feat: manage expert access and merge Parsian expert seeds

Allow role-specific identities and admin account activation, support national-code-only claim experts, and remove required voice from v4/v5. Add a combined, resumable Parsian seed that preserves existing accounts and merges locations and product codes.
This commit is contained in:
SepehrYahyaee
2026-11-18 17:16:26 +03:30
parent 2cdbc35d2e
commit 83376df4ad
38 changed files with 3608 additions and 136 deletions
+4 -1
View File
@@ -18,6 +18,9 @@ export const ExpertLocationDbSchema =
@Schema({ collection: "expert", versionKey: false, timestamps: true })
export class ExpertModel {
@Prop({ type: Boolean, default: true })
isActive?: boolean;
@Prop({})
firstName: string;
@@ -87,7 +90,7 @@ export class ExpertModel {
@Prop({ type: "string" })
otp: string;
@Prop({type: "string", required: false})
@Prop({ type: "string", required: false })
expertCode?: string;
@Prop({ type: String, required: false })