'use strict'; const TABLE_NAME = 'wms_store_express_binding_policy'; module.exports = { up: async (queryInterface, Sequelize) => { await queryInterface.changeColumn(TABLE_NAME, 'prohibited_type_id', { type: Sequelize.JSON, allowNull: true, comment: '违禁品类型ID数组(关联 wms_prohibited_type.id),如[1,2],NULL=不限制违禁品', }); }, down: async (queryInterface, Sequelize) => { await queryInterface.changeColumn(TABLE_NAME, 'prohibited_type_id', { type: Sequelize.INTEGER.UNSIGNED, allowNull: true, comment: '违禁品类型ID(关联 wms_prohibited_type.id),NULL=不限制违禁品', }); }, };