-- Per-node installed dev-tool versions (probed by the daemon) + the latest -- upstream version per tool (a nightly checker), so the fleet UI can flag updates. CREATE TABLE IF NOT EXISTS node_tools ( node_id UUID NOT NULL REFERENCES nodes (id) ON DELETE CASCADE, tool TEXT NOT NULL, version TEXT NOT NULL, updated_at TIMESTAMPTZ NOT NULL DEFAULT now(), PRIMARY KEY (node_id, tool) ); CREATE TABLE IF NOT EXISTS tool_latest ( tool TEXT PRIMARY KEY, latest_version TEXT NOT NULL, checked_at TIMESTAMPTZ NOT NULL DEFAULT now() );