Migrate the document store aote-system/file-archive → tebs-erl
Goal¶
Move the unified document store (receipts, vendor invoices, contracts) out of
aote-system/file-archive/documents/entries into ERL's own database
tebs-erl, and drop the redundant file-archive wrapper. Folders move too
(tebs-erl/folders/entries). viewerLinks stay in aote-system but record which
DB+path their target doc lives in.
Owner decision (2026-06-13): documents are ERL legal records → store in ERL only,
NOT fanned out per-subsidiary. Coaching invoices STAY in tebs-mel (domain-
coherent with their source sessions; ERL accounting truth is delivered by the
journal-derivation layer, not co-location). Project invoices already in tebs-erl.
Supersedes the cosmetic-cleanup half of T-012.
Open¶
- Confirm exact target path convention: their pattern is
group/wrapperDoc/entries(e.g.accounting/transactions/entries); owner wrote "documents/entries" (2 segs) — proposedocuments/entriesas a top-level collection ORdocuments/<wrapper>/entries. - Design the migration to fit T-022's Security-Rules shape (fields Rules match on) so we don't migrate twice. Sequence after/with T-022's claims+rules for documents.
Log¶
- 2026-06-13 created from the data-residency discussion. Not started.