CREATE TABLE IF NOT EXISTS acp_capability_cache (
  workspace_id TEXT NOT NULL,
  agent_type TEXT NOT NULL,
  agent_id TEXT NOT NULL DEFAULT '',
  config_options_json TEXT NOT NULL,
  updated_at TEXT NOT NULL,
  PRIMARY KEY (workspace_id, agent_type, agent_id)
);

CREATE INDEX IF NOT EXISTS idx_acp_capability_cache_workspace ON acp_capability_cache(workspace_id);
