From c657e04679c14678a64e1d0a442d423a4e671efd Mon Sep 17 00:00:00 2001 From: shangfangjian Date: Tue, 15 Sep 2026 01:44:49 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=90=8C=E6=AD=A5=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=B8=8E=E5=AE=9E=E7=8E=B0=E4=B8=80=E8=87=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 5 张表 → 6 张表(添加 injuries) - 同步所有 docs 和 models.py docstring --- docs/01-architecture.md | 4 ++-- docs/05-data.md | 2 +- docs/06-deployment.md | 2 +- docs/07-development.md | 2 +- docs/README.md | 2 +- src/db/models.py | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/01-architecture.md b/docs/01-architecture.md index 0582256..eccd3cf 100644 --- a/docs/01-architecture.md +++ b/docs/01-architecture.md @@ -21,7 +21,7 @@ │ │ └────────────┘ └───────────────────┘ │ │ │ │ └ understat (xG) │ │ ┌──┴──────────────┴──┐ └ injuries (伤停) │ -│ │ PostgreSQL (5 张表) │ httpx → 外部 API │ +│ │ PostgreSQL (6 张表) │ httpx → 外部 API │ │ └────────────────────┘ │ └─────────────────────────────────────────────────────┘ ``` @@ -66,7 +66,7 @@ Profeto/ │ │ └── eval.py # 赛后回填 + 准确率汇总 │ ├── db/ │ │ ├── base.py # async engine + get_db/get_db_read -│ │ └── models.py # 5 张表 ORM +│ │ └── models.py # 6 张表 ORM │ ├── data/ │ │ ├── bzzoiro.py # 赛果采集 + 幂等入库 │ │ ├── understat.py # xG 回填 diff --git a/docs/05-data.md b/docs/05-data.md index 6999eaf..a89ae72 100644 --- a/docs/05-data.md +++ b/docs/05-data.md @@ -59,7 +59,7 @@ ## 数据库 Schema -5 张表: +6 张表: ```sql -- 联赛 diff --git a/docs/06-deployment.md b/docs/06-deployment.md index 70949a5..5bc5cd8 100644 --- a/docs/06-deployment.md +++ b/docs/06-deployment.md @@ -128,7 +128,7 @@ alembic revision -m "描述" ``` 已有迁移: -- `0001_initial`: 初始 5 张表 +- `0001_initial`: 初始 5 张表(leagues/teams/matches/match_stats/predictions) - `0002_agent_outputs`: predictions 加 `mode` + `agent_outputs` ## 备份与恢复 diff --git a/docs/07-development.md b/docs/07-development.md index fd2fb25..94c53e5 100644 --- a/docs/07-development.md +++ b/docs/07-development.md @@ -43,7 +43,7 @@ Profeto/ │ │ └── app.py # FastAPI 工厂 │ ├── db/ │ │ ├── base.py # SQLAlchemy async engine + session -│ │ └── models.py # 5 张表 ORM +│ │ └── models.py # 6 张表 ORM │ ├── data/ │ │ ├── bzzoiro.py # bzzoiro 采集 + 入库 │ │ ├── understat.py # understat xG 回填 diff --git a/docs/README.md b/docs/README.md index 16be0c1..4a3c056 100644 --- a/docs/README.md +++ b/docs/README.md @@ -6,7 +6,7 @@ | [02-快速开始](02-quickstart.md) | 安装、启动、首次跑通全流程 | | [03-API 参考](03-api.md) | 全部 12 个端点、请求/响应示例、curl 全流程 | | [04-多 Agent 预测](04-agents.md) | 5 专家 + 终裁架构、执行语义、输出契约、prompt 版本化、如何新增 agent | -| [05-数据层与数据库](05-data.md) | 三数据源、清洗契约、5 张表 schema、入库语义、采集建议 | +| [05-数据层与数据库](05-data.md) | 三数据源、清洗契约、6 张表 schema、入库语义、采集建议 | | [06-部署](06-deployment.md) | Docker Compose、本地部署、环境变量、LLM 提供商配置、迁移、备份 | | [07-开发指南](07-development.md) | 项目结构、测试、常见开发任务(prompt/agent/数据源/联赛)、前端开发 | diff --git a/src/db/models.py b/src/db/models.py index dffad8a..55091ab 100644 --- a/src/db/models.py +++ b/src/db/models.py @@ -1,4 +1,4 @@ -"""5 张表 ORM: leagues / teams / matches / match_stats / predictions。""" +"""6 张表 ORM: leagues / teams / matches / match_stats / predictions / injuries。""" from __future__ import annotations from datetime import date, datetime, timezone