|
@@ -6,7 +6,7 @@ const moneyPlugin = require('naf-framework-mongoose-free/lib/model/type-money-pl
|
|
|
// 教练与学校的关系表
|
|
|
const relationCoachSchool = {
|
|
|
coach_id: { type: String, required: true, zh: '教练id', ref: 'Coach', getProp: [ 'name', 'phone', 'level', 'icon', 'user_id' ] }, //
|
|
|
- school_id: { type: String, required: true, zh: '学校id', ref: 'School', getProp: [ 'name', 'phone' ] }, //
|
|
|
+ school_id: { type: String, required: true, 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(relationCoachSchool, { toJSON: { virtuals: true, getters: true } });
|