-- Migration 057: Add previous analysis columns to audit_ai_cache
-- Stores the previous AI analysis before regeneration for comparison

ALTER TABLE audit_ai_cache ADD COLUMN IF NOT EXISTS previous_summary TEXT;
ALTER TABLE audit_ai_cache ADD COLUMN IF NOT EXISTS previous_actions_json JSONB;
ALTER TABLE audit_ai_cache ADD COLUMN IF NOT EXISTS previous_generated_at TIMESTAMP;
