module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.addColumn('workspace_settings', 'legal_entity_name', { type: Sequelize.TEXT });
    await queryInterface.addColumn('workspace_settings', 'legal_contact_email', { type: Sequelize.TEXT });
    await queryInterface.addColumn('workspace_settings', 'legal_terms_effective_date', { type: Sequelize.DATEONLY });
    await queryInterface.addColumn('workspace_settings', 'legal_review_confirmed', { type: Sequelize.BOOLEAN, allowNull: false, defaultValue: false });
  },

  async down(queryInterface) {
    await queryInterface.removeColumn('workspace_settings', 'legal_review_confirmed');
    await queryInterface.removeColumn('workspace_settings', 'legal_terms_effective_date');
    await queryInterface.removeColumn('workspace_settings', 'legal_contact_email');
    await queryInterface.removeColumn('workspace_settings', 'legal_entity_name');
  },
};
