WMS_MAIN/database/migrations/20260715210000-add-device-ids-to-wms-workbench.js
liufumingren 5b3180ff34 feat(workbench): 新增工作台/打包台模块 (workbench/pack_task)
- 新增 model: workbench, pack_task, pack_task_packer

- 新增 systemMethods: workbench (finishPack/sendWeight/操作日志)

- systems/workbench 扩展: 波次订单ID获取、打包操作日志白名单

- 10 条迁移: 建表→扩展→权限→重构
2026-07-27 03:46:37 +08:00

19 lines
479 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use strict';
const TABLE_NAME = 'wms_workbench';
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.addColumn(TABLE_NAME, 'device_ids', {
type: Sequelize.JSON,
allowNull: true,
comment: '设备ID列表,如 [1,2,3],触发打包任务时透传到 wms_pack_task.device_ids',
after: 'remark',
});
},
down: async queryInterface => {
await queryInterface.removeColumn(TABLE_NAME, 'device_ids');
},
};