-- RET-07: Fristablauf-Benachrichtigungen. Zwei neue Spalten je -- Aufbewahrungsklasse (Vorlauf, Ein/Aus-Schalter — Akzeptanzkriterium 3) -- und eine Dedupe-Tabelle (Akzeptanzkriterium 2: kein Mehrfachversand, -- auch nicht nach Job-Neustart, da Postgres-persistent statt In-Memory). ALTER TABLE retention_class_rules ADD COLUMN IF NOT EXISTS notify_lead_days INT NOT NULL DEFAULT 7; ALTER TABLE retention_class_rules ADD COLUMN IF NOT EXISTS notify_enabled BOOLEAN NOT NULL DEFAULT true; CREATE TABLE IF NOT EXISTS retention_notifications ( retention_object_id UUID PRIMARY KEY REFERENCES retention_objects(id) ON DELETE CASCADE, notified_at TIMESTAMPTZ NOT NULL DEFAULT now() );