mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
docs(guide): describe both library save modes in database.md and architecture.md (#580)
Closes #578. Rewrites the user file library save-mode description in the English database.md and architecture.md guides (independent-new by default, parent-linked on overwrite) and updates all 20 translated copies of each, with i18n_source_hash re-stamped so the parity gate stays green.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
description: "SnapOtter 的 monorepo 結構、app 與套件架構、請求生命週期,以及資源占用。"
|
||||
i18n_output_hash: 733f35af8cb1
|
||||
i18n_source_hash: 733cb3c10884
|
||||
i18n_source_hash: a53946e760b0
|
||||
i18n_provenance: human
|
||||
---
|
||||
|
||||
@@ -54,7 +54,7 @@ Python 腳本位於 `packages/ai/python/` 中。大型可選模型包根據需
|
||||
|
||||
一個 Fastify v5 伺服器,公開橫跨五種模態(image、video、audio、PDF、file)的 241 個工具路由,負責處理:
|
||||
- 檔案上傳、暫存工作區管理,以及持久化檔案儲存
|
||||
- 具版本鏈的使用者檔案資料庫(`user_files` 資料表)- 每個處理結果都連回其來源檔案並記錄套用了哪個工具,並為 Files 頁面自動產生縮圖
|
||||
- 使用者檔案資料庫(`user_files` 資料表):預設情況下,已儲存的編輯會儲存為一個獨立的新檔案;而當你覆寫原始檔案時,則儲存為一個與父檔案連結的版本。它會記錄套用了哪些工具(`toolChain`),並為 Files 頁面自動產生縮圖
|
||||
- 工具執行(將每個工具請求路由至影像引擎或 AI 橋接層)
|
||||
- 管線協調(依序串接多個工具)
|
||||
- 透過 BullMQ 工作佇列(pools:image、media、ai、docs、system)進行具並行控制的批次處理
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: "SnapOtter 的 PostgreSQL 資料庫結構、資料表、遷移,以及備份程序。"
|
||||
i18n_source_hash: b37398ae91a3
|
||||
i18n_source_hash: 50d5d4f220cf
|
||||
i18n_provenance: human
|
||||
i18n_output_hash: 34debcc24c5a
|
||||
---
|
||||
@@ -77,7 +77,7 @@ SnapOtter 使用 PostgreSQL 17 搭配 [Drizzle ORM](https://orm.drizzle.team/)
|
||||
|
||||
### user_files {#user-files}
|
||||
|
||||
具有版本鏈追蹤的持久化檔案庫。每個儲存結果的處理步驟都會建立一個新列,透過 `parentId` 連結到它的父列,形成一棵版本樹。
|
||||
持久化檔案庫。預設情況下,已儲存的編輯會作為一個獨立的根列插入(「另存為新檔」:`version` 為 1、`parentId` 為 null,因此原始檔案仍會保留在清單中);而當你覆寫原始檔案時,則作為一個與父列連結的版本(設定 `parentId`、遞增 `version`,並取代它)。`toolChain` 欄位會記錄所套用的工具。
|
||||
|
||||
| 欄位 | 型別 | 描述 |
|
||||
|--------|------|-------------|
|
||||
|
||||
Reference in New Issue
Block a user