'use strict';

module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.addColumn('goods_receipt_note_item', 'required_date', {
      type: Sequelize.DATEONLY,
      allowNull: true,
      comment: 'Date by which the material was required (from Material Request -> PR -> PO -> GRN)'
    });
  },

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

