CREATE UNIQUE INDEX IF NOT EXISTS idx_files_search_media ON files (media_id);