-- Add filename column to documents table to store original filename with path
ALTER TABLE documents ADD COLUMN filename TEXT;

-- Add index for efficient filename searches
CREATE INDEX idx_documents_filename ON documents(filename);