Files
slide/decks/gen2D/pages/data-model.md
T
wonder 19075592e5
Deploy Slides / build-and-deploy (push) Successful in 1m16s
fix: trim gen2D slide content to prevent overflow beyond header/footer
- Reduce Item count per slide: pipeline 4→3, solution 4→2, highlights 6→4
- Remove tech-stack architecture layering Item (moved to tech-stack grid)
- Simplify eino-graph: shorter Go code, 3 Items→2
- Simplify prompt-agent: smaller mermaid, shorter Item text
- Simplify async-task: merge 3 Items→2, remove footer
- Simplify data-model: merge 4 grid items→2
- Simplify architecture: reduce ASCII diagram from 38 to 20 lines
- Simplify dedup-ws: remove JSON code block, shorter Items
- Simplify deployment: smaller mermaid, shorter Items
- Simplify problem: shorter Item text, remove bullet lists
- Simplify style-system: fix typo, shorter Item text
2026-05-30 14:43:23 +08:00

679 B

数据模型与存储

四表结构,清晰的实体关系

erDiagram
    USER ||--o{ PROJECT : "拥有"
    PROJECT ||--|| PROJECT_STYLE : "配置"
    PROJECT ||--o{ TASK : "生成"
    TASK ||--o{ ASSET : "产出"
- 用户:`id`(base62)、`username`、`password_hash`(bcrypt) - 工程:`id`、`user_id`、`name`、`description` - 风格表:`project_id` 一对一,`kv_pairs` JSON 存储 - 任务:`prompt`、`status`、`style_override` - 素材:`file_url`、`metadata`,存于七牛云 Kodo