'use strict';

module.exports = {
  async up(queryInterface, Sequelize) {
    // Add erp_module column to document table
    await queryInterface.addColumn('document', 'erp_module', {
      type: Sequelize.STRING(100),
      allowNull: true,
      comment: 'ERP Module this document is linked to (e.g., BUSINESS_PARTNER, MATERIAL, PURCHASE_ORDER)'
    });
  },

  async down(queryInterface, Sequelize) {
    // Remove erp_module column
    await queryInterface.removeColumn('document', 'erp_module');
  }
};
