-- Exemplo de retenção (90 dias de eventos e requests sem diffs referenciadas)
DELETE e FROM wp_audit_event e WHERE e.happened_at < (NOW() - INTERVAL 90 DAY);
DELETE r FROM wp_audit_request r WHERE r.started_at < (NOW() - INTERVAL 90 DAY);
