|
@@ -5,7 +5,7 @@ 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: [ 'name' ] }, //
|
|
|
+ coach_id: { type: String, required: true, zh: '教练id', ref: 'Coach', getProp: [ 'icon', 'name', 'phone', 'age', 'gender', 'level', 'honor' ] }, //
|
|
|
doc: { type: Object, required: false, zh: '档案' }, //
|
|
|
config: { type: Object, required: false, zh: '设置' }, //
|
|
|
};
|