|
@@ -30,6 +30,7 @@ const orderDetail = {
|
|
|
group: { type: String, required: false, zh: '所属团', ref: 'Group.Group' }, //
|
|
|
out_bill: { type: String, required: false, default: '1', zh: '是否出账' }, // 字典:tf
|
|
|
inviter: { type: String, required: false, zh: '推荐商品人', ref: 'User.User' }, // 返现部分
|
|
|
+ transport_type: { type: String, required: false, zh: '快递类型' }, // 字典:transport_type
|
|
|
};
|
|
|
const schema = new Schema(orderDetail, { toJSON: { getters: true, virtuals: true } });
|
|
|
schema.index({ id: 1 });
|
|
@@ -46,6 +47,7 @@ schema.index({ type: 1 });
|
|
|
schema.index({ group: 1 });
|
|
|
schema.index({ out_bill: 1 });
|
|
|
schema.index({ inviter: 1 });
|
|
|
+schema.index({ transport_type: 1 });
|
|
|
|
|
|
schema.plugin(metaPlugin);
|
|
|
|