ALTER TABLE documents
	ADD COLUMN IF NOT EXISTS review_status VARCHAR(50) DEFAULT 'pending',
	ADD COLUMN IF NOT EXISTS review_notes JSONB DEFAULT '[]'::jsonb,
	ADD COLUMN IF NOT EXISTS updated_at TIMESTAMPTZ DEFAULT NOW();

CREATE INDEX IF NOT EXISTS idx_documents_review_status ON documents(review_status);

