ALTER TABLE library_threads ADD COLUMN IF NOT EXISTS project_id TEXT;
CREATE INDEX IF NOT EXISTS idx_library_threads_project_id ON library_threads(project_id);
