|
@@ -30,6 +30,7 @@ const afterSale = {
|
|
const schema = new Schema(afterSale, { toJSON: { getters: true, virtuals: true } });
|
|
const schema = new Schema(afterSale, { toJSON: { getters: true, virtuals: true } });
|
|
schema.index({ id: 1 });
|
|
schema.index({ id: 1 });
|
|
schema.index({ 'meta.createdAt': 1 });
|
|
schema.index({ 'meta.createdAt': 1 });
|
|
|
|
+schema.index({ shop: 1 });
|
|
schema.index({ type: 1 });
|
|
schema.index({ type: 1 });
|
|
schema.index({ apply_time: 1 });
|
|
schema.index({ apply_time: 1 });
|
|
schema.index({ end_time: 1 });
|
|
schema.index({ end_time: 1 });
|