|
@@ -11,7 +11,7 @@ const doc = {
|
|
|
// 学员与学校关系表
|
|
|
const relationStudentSchool = {
|
|
|
student_id: { type: String, required: false, zh: '学员id', ref: 'Student', getProp: [ 'name', 'icon', 'level', 'phone', 'user_id' ] }, //
|
|
|
- school_id: { type: String, required: false, zh: '学校id', ref: 'School', getProp: [ 'img_url', 'name', 'phone', 'coach_num', 'student_num', 'address', 'brief' ] }, //
|
|
|
+ school_id: { type: String, required: false, zh: '学校id', ref: 'School', getProp: [ 'img_url', 'name', 'phone', 'coach_num', 'student_num', 'address', 'brief', 'yyzz' ] }, //
|
|
|
doc: { type: Object, required: false, zh: '档案' }, //
|
|
|
};
|
|
|
const schema = new Schema(relationStudentSchool, { toJSON: { getters: true, virtuals: true } });
|