'use strict';

module.exports = {
  up: async (queryInterface, Sequelize) => {
    await queryInterface.addColumn('nesting_stores_request_line', 'quantity_uom_id', {
      type: Sequelize.INTEGER,
      allowNull: true,
      references: { model: 'uom', key: 'id' },
      onUpdate: 'CASCADE',
      onDelete: 'SET NULL'
    });
  },

  down: async (queryInterface) => {
    await queryInterface.removeColumn('nesting_stores_request_line', 'quantity_uom_id');
  }
};
