|
@@ -5,7 +5,7 @@ const metaPlugin = require('naf-framework-mongoose-free/lib/model/meta-plugin');
|
|
|
|
|
|
const relationStudentSchool = {
|
|
|
student_id: { type: String, required: false, zh: '学员id', ref: 'Student', getProp: [ 'name' ] },
|
|
|
- school_id: { type: String, required: false, zh: '学校id', ref: 'School', getProp: [ 'name' ] },
|
|
|
+ school_id: { type: String, required: false, zh: '学校id', ref: 'School', getProp: [ 'img_url', 'name', 'phone', 'coach_num', 'student_num', 'address', 'brief' ] },
|
|
|
doc: { type: Object, required: false, zh: '档案' },
|
|
|
};
|
|
|
const schema = new Schema(relationStudentSchool, { toJSON: { virtuals: true } });
|