'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'); }, };