-- Etappe Widerruf – Step 1: legal_settings um Widerruf erweitern
-- Ausführen pro Datenbank einmalig.

ALTER TABLE legal_settings
  ADD COLUMN IF NOT EXISTS withdrawal_mode ENUM('standard','excluded_312g_2_9','b2b_only') NOT NULL DEFAULT 'standard';

ALTER TABLE legal_settings
  ADD COLUMN IF NOT EXISTS withdrawal_early_start_days INT NOT NULL DEFAULT 14;

ALTER TABLE legal_settings
  ADD COLUMN IF NOT EXISTS withdrawal_contact_email VARCHAR(255) NULL;

ALTER TABLE legal_settings
  ADD COLUMN IF NOT EXISTS withdrawal_info_html MEDIUMTEXT NULL;

ALTER TABLE legal_settings
  ADD COLUMN IF NOT EXISTS withdrawal_info_text MEDIUMTEXT NULL;

ALTER TABLE legal_settings
  ADD COLUMN IF NOT EXISTS withdrawal_form_text MEDIUMTEXT NULL;
