lrf 2 years ago
parent
commit
235e126ce5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/model/relation/relationCoachSchool.js

+ 1 - 1
app/model/relation/relationCoachSchool.js

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