-- Migration 005: Add document type detection columns
-- These columns store the result of automatic document type detection
-- (vocab_table, full_text, generic_table) after dewarp.

ALTER TABLE ocr_pipeline_sessions
ADD COLUMN IF NOT EXISTS doc_type VARCHAR(50),
ADD COLUMN IF NOT EXISTS doc_type_result JSONB;
