2024-10-12 09:49:58 +00:00
|
|
|
use digimon_order;
|
|
|
|
|
2024-10-22 09:12:05 +00:00
|
|
|
db.order.createIndex({ "business_id": 1, "order_status": 1, "create_time": -1 })
|
|
|
|
db.orders.createIndex({ "reference_id": 1, "reference_uid": 1, "business_id": 1, "uid": 1 })
|
|
|
|
db.orders.createIndex({ "order_type": 1, "direction_type": 1, "order_status": 1 })
|
|
|
|
db.orders.createIndex({ "create_time": -1, "update_time": -1, "order_arrival_time": -1, "order_payment_time": -1 })
|
|
|
|
|
2024-10-12 09:49:58 +00:00
|
|
|
db.order.createIndex({
|
|
|
|
"uid": 1,
|
|
|
|
"order_type": 1,
|
|
|
|
"order_status": 1,
|
2024-10-22 09:12:05 +00:00
|
|
|
"create_time": -1,
|
2024-10-12 09:49:58 +00:00
|
|
|
})
|