guhongwei 3 年之前
父节点
当前提交
c64c13675b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/model/personal.js

+ 1 - 0
app/model/personal.js

@@ -28,6 +28,7 @@ const personal = {
 };
 const schema = new Schema(personal, { toJSON: { virtuals: true } });
 schema.index({ id: 1 });
+schema.index({ name: 1 });
 schema.index({ phone: 1 });
 schema.index({ code: 1 });
 schema.index({ status: 1 });