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