guhongwei 3 years ago
parent
commit
c64c13675b
1 changed files with 1 additions and 0 deletions
  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 });