|
@@ -6,8 +6,8 @@ const moneyPlugin = require('naf-framework-mongoose-free/lib/model/type-money-pl
|
|
|
// 课程表-学员
|
|
|
const lessonStudent = {
|
|
|
lesson_id: { type: String, required: false, zh: '课程id', ref: 'Lesson', getProp: [ 'title', 'status', 'time_start', 'time_end', 'refund_hour' ] }, //
|
|
|
- school_id: { type: String, required: false, zh: '学校id', ref: 'School', getProp: [ 'name', 'phone', 'icon' ] }, //
|
|
|
- student_id: { type: String, required: false, zh: '学生id', ref: 'Student', getProp: [ 'name' ] }, //
|
|
|
+ school_id: { type: String, required: false, zh: '学校id', ref: 'School', getProp: [ 'name' ] }, //
|
|
|
+ student_id: { type: String, required: false, zh: '学生id', ref: 'Student', getProp: [ 'name', 'phone', 'icon' ] }, //
|
|
|
is_try: { type: String, required: false, default: '0', zh: '是否试课' }, // 0:非试课;1:试课
|
|
|
try_status: { type: String, default: '0', zh: '试课审核状态' }, // 0:未审核;1:审核通过;2审核拒绝
|
|
|
is_pay: { type: String, default: '0', zh: '是否已支付' }, // 0:未支付;1:已支付:-1:支付失败:-3已退款
|