# 运行观测数据库设计 ## 1. 表范围 运行观测复用已有运行表,不单独新增观测主表: - `workflow_run` - `workflow_run_step` - `model_call_log` - `agent_session` - `agent_message` ## 2. 索引建议 - `workflow_run.request_id` - `workflow_run.status` - `workflow_run_step.run_id` - `model_call_log.request_id` - `model_call_log.task_type` - `agent_session.agent_id` ## 3. 脚本 索引分散在: - `script/sql/workflow.sql` - `script/sql/model_provider.sql` - `script/sql/agent_session.sql` - `docs/STUDIO_PROTOTYPE_SCHEMA.sql`