WMS_MAIN/database/migrations/20260930110000-add-warning-quantity-to-wms-stock-warehouse.js
liufumingren 190d3cf9e5 feat(stock.check): 盘点模块功能扩展并同步接口文档(0.3.227)
- 盘点明细/记录支持未知商品(stock_id 可空)与库位范围,模式/状态口径修正
- 新增静态盘点任务、公告相关模型与迁移,stock_warehouse 增加预警数量
- methods/system.json 同步盘点接口文档;headers platform 微信端取值 wx 修正为 miniprogram
2026-10-02 15:43:49 +08:00

18 lines
439 B
JavaScript

'use strict';
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn('wms_stock_warehouse', 'warning_quantity', {
type: Sequelize.INTEGER(11),
allowNull: true,
defaultValue: 0,
comment: '库存预警数量',
after: 'locked_quantity',
});
},
async down(queryInterface) {
await queryInterface.removeColumn('wms_stock_warehouse', 'warning_quantity');
},
};