Files
storyforge/TECH_ARCHITECTURE.md

27 lines
776 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# StoryForge Technical Architecture
## Core Components
- Android App: 素材探索、文案生产、个人配置、管理员审批、OTA
- Collector Service: FastAPI + SQLite负责多租户业务边界、任务状态和 Agent 数据
- n8n: 负责异步流程编排与 webhook 触发
- Local Model API: 默认指向本机 `cli-proxy-api`
- NAS / 外部执行器: 负责大文件缓存、录像、剪辑和 AI 视频执行
## Main Flow
User -> Android App / Web / OneLiner -> Collector Service -> Local Model / n8n / 执行引擎
## Data Isolation
- `accounts`
- `knowledge_bases`
- `assistants`
- `assistant_knowledge_bases`
- `knowledge_documents`
- `jobs`
- `model_profiles`
- `app_updates`
每个用户/项目的数据通过 `user_id + project_id` 进行隔离。