'use strict'; /** * 取号记录增加「打印记录」(店管家 `PrintHistoryIds`)。 * * 平台每打印一张面单就新增一条打印历史,`Id` 即 printHistoryId:重打/作废/查打印记录 * (`PrintHistory/LoadPrintData`)都按它回捞,因此取号成功时落库留痕。 * 多包裹时存 JSON 数组,元素形如 `{ id, pid, waybill_code, batch_index }`。 */ module.exports = { async up(queryInterface, Sequelize) { await queryInterface.addColumn('waybill_fetch_records', 'print_history_ids', { type: Sequelize.TEXT, allowNull: true, comment: '打印记录(平台 PrintHistoryIds,JSON 数组:id/pid/waybill_code/batch_index)', after: 'signature', }); }, async down(queryInterface) { await queryInterface.removeColumn('waybill_fetch_records', 'print_history_ids'); }, };