-- Add analysis_data column to store full BPCP CIM Review Template data
ALTER TABLE documents ADD COLUMN analysis_data JSONB;

-- Add index for efficient querying of analysis data
CREATE INDEX idx_documents_analysis_data ON documents USING GIN (analysis_data);

-- Add comment to document the column purpose
COMMENT ON COLUMN documents.analysis_data IS 'Stores the full BPCP CIM Review Template analysis data as JSON'; 