-- Globale System-Konfiguration (Key/Value, JSONB) CREATE TABLE IF NOT EXISTS system_config ( key VARCHAR(64) PRIMARY KEY, value JSONB NOT NULL, updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP ); CREATE INDEX IF NOT EXISTS idx_system_config_updated_at ON system_config (updated_at);