dropboxEntities 為 Dropbox 同步在專案與某位使用者的 Dropbox 之間複製過的每個檔案保存一份文件,另外還有短期存在的 tombstone。此集合屬於 Dropbox 同步:third-party-datastore(services/third-party-datastore/app/js/StateManager.mjs)寫入並讀取它,dropbox web 模組(services/web/modules/dropbox/app/src/DropboxHandler.mjs)清除它。沒有 Mongoose schema。
欄位
tombstone 只有
overleaf.userId、dropbox.pathLower、tombstone 與 createdAt(StateManager.mjs:96-103)。
誰寫入
誰讀取
索引
20220811111800_create_dropboxEntities_index.mjs 與 20220825160708_recreate_dropboxEntities.mjs 只帶有 saas 標籤,因此 CE 既沒有它們在 (overleaf.userId, dropbox.id) 與 (overleaf.userId, overleaf.id) 上的唯一索引,也沒有它們在 dropbox.pathLower 上的雜湊索引。
說明
- 唯一性僅來自
recordEntity中每次插入前的刪除(StateManager.mjs:38-45)。StateManager.mjs:3-11的註解提到唯一索引;CE 沒有這些索引。 - 依使用者與路徑的查詢(
findEntityByPath、findTombstone、removeEntities)只對overleaf.userId使用索引。

