lrf 2 년 전
부모
커밋
235e126ce5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 = {
   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 } });