|
@@ -11,6 +11,7 @@ const user = {
|
|
password: { type: Secret, required: false, select: false, zh: '密码' }, //
|
|
password: { type: Secret, required: false, select: false, zh: '密码' }, //
|
|
icon: { type: Array, required: false, zh: '头像' }, //
|
|
icon: { type: Array, required: false, zh: '头像' }, //
|
|
birth: { type: String, required: false, zh: '生日' }, //
|
|
birth: { type: String, required: false, zh: '生日' }, //
|
|
|
|
+ gender: { type: String, required: false, zh: '性别' }, // 字典:gender
|
|
openid: { type: String, required: false, zh: '微信小程序' }, //
|
|
openid: { type: String, required: false, zh: '微信小程序' }, //
|
|
status: { type: String, required: false, default: '0', zh: '状态' }, // 字典:user_type
|
|
status: { type: String, required: false, default: '0', zh: '状态' }, // 字典:user_type
|
|
};
|
|
};
|
|
@@ -19,6 +20,7 @@ schema.index({ id: 1 });
|
|
schema.index({ 'meta.createdAt': 1 });
|
|
schema.index({ 'meta.createdAt': 1 });
|
|
schema.index({ name: 1 });
|
|
schema.index({ name: 1 });
|
|
schema.index({ phone: 1 });
|
|
schema.index({ phone: 1 });
|
|
|
|
+schema.index({ gender: 1 });
|
|
schema.index({ openid: 1 });
|
|
schema.index({ openid: 1 });
|
|
schema.index({ status: 1 });
|
|
schema.index({ status: 1 });
|
|
|
|
|