'use strict'; module.exports = { async up(queryInterface, Sequelize) { // Query 3 关联查询:delivery_order_code + store_id 联合索引(最高频缺失索引) await queryInterface.addIndex('wms_order_express', [ 'delivery_order_code', 'store_id' ], { name: 'idx_delivery_code_store', }); }, async down(queryInterface, Sequelize) { await queryInterface.removeIndex('wms_order_express', 'idx_delivery_code_store'); }, };