refactor(schema): 重构数据库模型和 schema,清理废弃表

This commit is contained in:
qzl
2026-04-07 18:43:34 +08:00
parent a65d041436
commit b18a205bf3
19 changed files with 101 additions and 426 deletions
@@ -160,7 +160,9 @@ During run streaming, backend emits standard AG-UI lifecycle events and two divi
### 2) `TEXT_MESSAGE_END`
- Standard final answer event.
- Existing fields remain canonical: `sign_level`, `summary`, `conclusion`, `focus_points`, `advice`, `keywords`, `answer`.
- Existing fields remain canonical: `sign_level`, `conclusion`, `focus_points`, `advice`, `keywords`, `answer`.
- Language rule: `conclusion`, `focus_points`, `advice`, `keywords`, `answer` should follow user `ai_language` preference unless user explicitly requests otherwise.
- Canonical six-yao terms remain Chinese in protocol text (for example: 世爻、应爻、动爻、静爻、六亲、六神、伏神、月建、日辰、月破、日冲、空亡、五行旺衰).
Frontend should combine:
@@ -189,15 +191,11 @@ Frontend should combine:
"agent_output": {
"status": "success",
"sign_level": "中上签",
"summary": "...",
"conclusion": ["..."],
"focus_points": ["..."],
"advice": ["..."],
"keywords": ["..."],
"answer": "...",
"key_points": ["..."],
"result_type": "structured_payload",
"suggested_actions": ["..."],
"divination_derived": {
"binaryCode": "101001",
"changedBinaryCode": "100001",