Page MenuHomePhabricator

D3489.id10591.diff
No OneTemporary

D3489.id10591.diff

diff --git a/services/backup/docker-server/contents/server/src/DatabaseEntities/BackupItem.h b/services/backup/docker-server/contents/server/src/DatabaseEntities/BackupItem.h
--- a/services/backup/docker-server/contents/server/src/DatabaseEntities/BackupItem.h
+++ b/services/backup/docker-server/contents/server/src/DatabaseEntities/BackupItem.h
@@ -10,6 +10,17 @@
namespace database {
/**
+ * backup - backups assigned to users along with the data necessary to
+ * decrypt
+ * `created` - when the backup was created. This is a search key because
+ * we want to be able to perform effective queries based on this info
+ * (for example get me the latest backup, get me backup from some day)
+ * `attachmentHolders` - this is a list of attachment references
+ * `recoveryData` - data serialized with protobuf which is described by
+ * one of the following structures:
+ * { authType: 'password', pakePasswordCiphertext: string, nonce: string }
+ * { authType: 'wallet', walletAddress: string, rawMessage: string }
+ *
* this class is used for representing two things: the rows in the main table,
* and also the rows in the secondary index
*
diff --git a/services/backup/docker-server/contents/server/src/DatabaseEntities/LogItem.h b/services/backup/docker-server/contents/server/src/DatabaseEntities/LogItem.h
--- a/services/backup/docker-server/contents/server/src/DatabaseEntities/LogItem.h
+++ b/services/backup/docker-server/contents/server/src/DatabaseEntities/LogItem.h
@@ -9,6 +9,13 @@
namespace network {
namespace database {
+/*
+ * log - a single log record
+ * `backupID` - id of the backup that this log is assigned to
+ * `value` - either the value itself(if `persistedInBlob` is false)
+ * or the holder to blob(if `persistedInBlob` is true)
+ * `attachmentHolders` - this is a list of attachment references
+ */
class LogItem : public Item {
std::string backupID;

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 8, 10:19 AM (2 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2816493
Default Alt Text
D3489.id10591.diff (1 KB)

Event Timeline