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 });