'use strict'; /** * 出库单新增 WMS 推送字段: * - pushed_at 推送时间 * - wms_push_result WMS 推送结果(外部单号/返回码/消息/原始报文),用于排查与回显 */ module.exports = { async up(queryInterface, Sequelize) { await queryInterface.addColumn('outbound_orders', 'pushed_at', { type: Sequelize.DATE, allowNull: true, comment: 'WMS 推送时间', }); await queryInterface.addColumn('outbound_orders', 'wms_push_result', { type: Sequelize.JSON, allowNull: true, comment: 'WMS 推送结果(外部单号/返回码/消息/原始报文)', }); }, async down(queryInterface) { await queryInterface.removeColumn('outbound_orders', 'wms_push_result'); await queryInterface.removeColumn('outbound_orders', 'pushed_at'); }, };