'use strict';

module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.addColumn('material_request_item', 'required_date', {
      type: Sequelize.DATEONLY,
      allowNull: true,
      comment: 'Date by which the material is required (from Production Order finish_date or Customer PO delivery_date)'
    });
  },

  async down(queryInterface, Sequelize) {
    await queryInterface.removeColumn('material_request_item', 'required_date');
  }
};


