|
@@ -10,7 +10,7 @@ const tempLessonApply = {
|
|
|
coach_id: { type: String, required: false, zh: '教练id', ref: 'Coach', getProp: [ 'name' ] }, //
|
|
|
img_url: { type: Array, required: false, zh: '证据' }, //
|
|
|
money: { type: Number, required: false, zh: '金额' }, //
|
|
|
- pay_id: { type: Array, required: false, zh: '支付id', ref: 'PayOrder' }, //
|
|
|
+ pay_id: { type: String, required: false, zh: '支付id', ref: 'PayOrder' }, //
|
|
|
};
|
|
|
const schema = new Schema(tempLessonApply, { toJSON: { virtuals: true } });
|
|
|
schema.index({ id: 1 });
|