|
@@ -39,6 +39,7 @@ schema.index({ phone: 1 });
|
|
|
schema.index({ profession: 1 });
|
|
|
schema.index({ institution_code: 1 });
|
|
|
schema.index({ companyperson: 1 });
|
|
|
+schema.index({ 'meta.createdAt': 1 });
|
|
|
schema.plugin(metaPlugin);
|
|
|
module.exports = app => {
|
|
|
const { mongoose } = app;
|