|
@@ -13,7 +13,7 @@ const zrOrder = {
|
|
|
address: { type: Object, required: false, zh: '地址' }, // 快照
|
|
|
transport: { type: Object, required: false, zh: '快递信息' }, //
|
|
|
remarks: { type: String, required: false, zh: '备注' }, //
|
|
|
- status: { type: String, required: false, zh: '订单状态' }, //
|
|
|
+ status: { type: String, required: false, default: '0', zh: '订单状态' }, //
|
|
|
};
|
|
|
const schema = new Schema(zrOrder, { toJSON: { getters: true, virtuals: true } });
|
|
|
schema.index({ id: 1 });
|