lrf 2 years ago
parent
commit
55a88ee8a9

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

@@ -5,7 +5,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' ] }, //
+  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' ] }, //
   doc: { type: Object, required: false, zh: '教练档案' }, //
 };

+ 3 - 3
app/model/relation/relationStudentCoach.js

@@ -4,9 +4,9 @@ const metaPlugin = require('naf-framework-mongoose-free/lib/model/meta-plugin');
 
 // 学员与教练关系表
 const relationStudentCoach = {
-  student_id: { type: String, required: true, zh: '学生id', ref: 'Student', getProp: ['name'] }, //
-  coach_id: { type: String, required: true, zh: '教练id', ref: 'Coach', getProp: ['icon', 'name', 'phone', 'age', 'gender', 'level', 'honor'] }, //
-  school_id: { type: String, required: true, zh: '学校id', ref: 'School', getProp: ['name', 'phone'] }, //
+  student_id: { type: String, required: true, zh: '学生id', ref: 'Student', getProp: [ 'name' ] }, //
+  coach_id: { type: String, required: true, zh: '教练id', ref: 'Coach', getProp: [ 'icon', 'name', 'phone', 'age', 'gender', 'level', 'honor' ] }, //
+  school_id: { type: String, required: true, zh: '学校id', ref: 'School', getProp: [ 'name', 'phone' ] }, //
   doc: { type: Object, required: false, zh: '档案' }, //
   config: { type: Object, required: false, zh: '设置' }, // 打折方式 discount_type:fixed 固定;subtract 减; discount折 ;number
 };

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

@@ -10,7 +10,7 @@ const doc = {
 
 // 学员与学校关系表
 const relationStudentSchool = {
-  student_id: { type: String, required: false, zh: '学员id', ref: 'Student', getProp: [ 'name', 'icon', 'level', 'phone' ] }, //
+  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' ] }, //
   doc: { type: Object, required: false, zh: '档案' }, //
 };