|
|
@ -62,7 +62,8 @@ const userSchema = new mongoose.Schema(
|
|
|
|
emails: [{ email: String, verified: { type: Boolean, default: false } }],
|
|
|
|
emails: [{ email: String, verified: { type: Boolean, default: false } }],
|
|
|
|
services: { password: { bcrypt: String } },
|
|
|
|
services: { password: { bcrypt: String } },
|
|
|
|
survey_status:{ type:String,default: "pending" },
|
|
|
|
survey_status:{ type:String,default: "pending" },
|
|
|
|
favorate_suppliers: [{ type:String,default: null }],
|
|
|
|
favorate_suppliers: [{ type: mongoose.Schema.Types.ObjectId, ref: "Supplier", default: null }],
|
|
|
|
|
|
|
|
|
|
|
|
staff: {
|
|
|
|
staff: {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|