Files
slide/decks/gen2D/pages/data-model.md
T
wonder d479504f12
Deploy Slides / build-and-deploy (push) Successful in 1m32s
feat: restructure gen2D deck with enriched content and frankfurt theme components
- Restructure from 12 slides to 21 slides with proper section navigation
- Split into pages/ for modular maintenance (15 page files)
- Use frankfurt theme: cover layout, Item component, section frontmatter
- Remove all two-cols layouts to avoid rendering issues
- Add rich content from tmp/ docs: Eino pipeline, prompt agent, async tasks, data model, deployment
- Use Item component for structured content blocks
- Add mermaid ER diagram for data model
- Add Go code block for pipeline type definitions
2026-05-30 14:22:50 +08:00

1016 B
Raw Blame History

数据模型与存储

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

erDiagram
    USER ||--o{ PROJECT : "拥有"
    PROJECT ||--|| PROJECT_STYLE : "配置"
    PROJECT ||--o{ TASK : "生成"
    TASK ||--o{ ASSET : "产出"
- `id`:前缀 + 随机 base62(6 字节 crypto/rand) - `username`:唯一用户名 - `password_hash`:bcrypt 哈希 - `id`:唯一标识 - `user_id`:外键关联用户 - `name` / `description`:工程信息 - `project_id`:一对一关联工程 - `kv_pairs`:JSON 存储风格键值对 - 支持 `custom:` 前缀自定义标签 - Task:`id` / `project_id` / `prompt` / `status` / `style_override` - Asset:`id` / `task_id` / `file_url` / `metadata` - 文件存储:七牛云 Kodo,CDN 签名访问