|
@@ -44,7 +44,7 @@ const StudentSchema = {
|
|
|
|
|
|
|
|
|
|
const schema = new Schema(StudentSchema, { toJSON: { virtuals: true } });
|
|
const schema = new Schema(StudentSchema, { toJSON: { virtuals: true } });
|
|
-schema.index({ id: 1 });
|
|
|
|
|
|
+schema.index({ id: 1, termid: 1, batchid: 1, schid: 1 });
|
|
schema.plugin(metaPlugin);
|
|
schema.plugin(metaPlugin);
|
|
|
|
|
|
module.exports = app => {
|
|
module.exports = app => {
|