feat(backup): add BACKUP and RESTORE_REQUESTS collection constants to FirestoreCollections

This commit is contained in:
null 2026-06-30 20:42:26 -05:00
parent 7f8dac0b14
commit 14ba8f2b53
1 changed files with 12 additions and 0 deletions

View File

@ -41,6 +41,18 @@ object FirestoreCollections {
const val WHEEL = "wheel" const val WHEEL = "wheel"
const val DESIRE_SYNC = "desire_sync" const val DESIRE_SYNC = "desire_sync"
const val HOW_WELL = "how_well" const val HOW_WELL = "how_well"
// E2EE conversation backup (couple-key encrypted) + full partner-assisted restore.
const val BACKUP = "backup"
const val RESTORE_REQUESTS = "restore_requests"
}
// ── Docs/subcollections under couples/{coupleId}/backup ───────────────────
object Backup {
/** Fixed manifest doc: pointers + generation for optimistic concurrency. */
const val MANIFEST_ID = "manifest"
/** Incremental encrypted chunk docs appended since the last cursor. */
const val CHUNKS = "chunks"
} }
// Standalone subcollection name that appears under both couples/{id} and users/{uid} // Standalone subcollection name that appears under both couples/{id} and users/{uid}