-- Migration 113: Granularer Vendor-Level Consent
-- Erweitert Banner-Consents um vendor_consents JSONB ({"vendor_id": true/false})
-- Additiv und rueckwaerts-kompatibel

ALTER TABLE compliance_banner_consents
    ADD COLUMN IF NOT EXISTS vendor_consents JSONB DEFAULT '{}';

ALTER TABLE compliance_banner_consent_audit_log
    ADD COLUMN IF NOT EXISTS vendor_consents JSONB DEFAULT '{}';
