|
@@ -5,7 +5,7 @@ const moneyPlugin = require('naf-framework-mongoose-free/lib/model/type-money-pl
|
|
|
|
|
|
// 教练费明细
|
|
|
const coachInBill = {
|
|
|
- lesson_id: { type: String, required: false, zh: '课程id' }, //
|
|
|
+ lesson_id: { type: String, required: false, zh: '课程id', ref: 'Lesson', getProp: [ 'title' ] }, //
|
|
|
type: { type: String, required: false, zh: '类型' }, // 0:公开课收入;1私教课收入
|
|
|
school_id: { type: String, required: false, zh: '学校id', ref: 'School', getProp: [ 'name' ] }, //
|
|
|
coach_id: { type: String, required: false, zh: '教练id', ref: 'Coach', getProp: [ 'name' ] }, //
|