Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3694010
D3489.id10613.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3489.id10613.diff
View Options
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,14 @@
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 which is a dump of a single operation (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
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 8, 9:32 AM (1 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2815956
Default Alt Text
D3489.id10613.diff (1 KB)
Attached To
Mode
D3489: [services] Backup - Add comments to the db entities
Attached
Detach File
Event Timeline
Log In to Comment