'use strict';

module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.addColumn('route_card_operation_material_consumption', 'material_display_snapshot', {
      type: Sequelize.STRING(512),
      allowNull: true,
      comment: 'Nesting-style / WIP display line at time of save (audit)',
    });
  },

  async down(queryInterface) {
    await queryInterface.removeColumn('route_card_operation_material_consumption', 'material_display_snapshot');
  },
};
