lrf %!s(int64=2) %!d(string=hai) anos
pai
achega
f719064738
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/model/relation/relationCoachSchool.js

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

@@ -4,8 +4,8 @@ const metaPlugin = require('naf-framework-mongoose-free/lib/model/meta-plugin');
 
 // 教练与学校的关系表
 const relationCoachSchool = {
-  coach_id: { type: String, required: true, zh: '教练id', ref: 'Coach', getProp: [ 'name' ] }, //
-  school_id: { type: String, required: true, zh: '学校id', ref: 'School', getProp: [ 'name' ] }, //
+  coach_id: { type: String, required: true, zh: '教练id', ref: 'Coach', getProp: [ 'name', 'phone', 'level' ] }, //
+  school_id: { type: String, required: true, zh: '学校id', ref: 'School', getProp: [ 'name', 'phone' ] }, //
   doc: { type: Object, required: false, zh: '教练档案' }, //
 };
 const schema = new Schema(relationCoachSchool, { toJSON: { virtuals: true } });