-- 019_project_research.sql — fields for the per-space project research feature.
-- The Research button (stub) sets research_status='requested'; the future Eithan
-- agent picks those up, sets 'researching' → 'done', and fills research_notes.
ALTER TABLE projects ADD COLUMN research_status text NOT NULL DEFAULT 'none'
  CHECK (research_status IN ('none', 'requested', 'researching', 'done', 'error'));
ALTER TABLE projects ADD COLUMN research_notes text;
ALTER TABLE projects ADD COLUMN research_requested_at timestamptz;
ALTER TABLE projects ADD COLUMN last_researched_at timestamptz;
