diff --git a/services/backup/docker-server/contents/server/src/DatabaseEntities/DatabaseEntitiesTools.h b/services/backup/docker-server/contents/server/src/DatabaseEntities/DatabaseEntitiesTools.h new file mode 100644 --- /dev/null +++ b/services/backup/docker-server/contents/server/src/DatabaseEntities/DatabaseEntitiesTools.h @@ -0,0 +1,37 @@ +#pragma once + +#include "Item.h" + +#include +#include + +namespace comm { +namespace network { +namespace database { + +/** + * Database - Structure: + * backup + * userID[PK] string + * created[SK] timestamp + * backupID string + * recoveryData bytes + * encryptedBackupKey bytes + * compactionHolder string + * attachmentHolders list + * log + * backupID[PK] string + * logID[SK] string + * persistedInBlob bool + * value bytes + * attachmentHolders list + */ + +template std::shared_ptr createItemByType() { + static_assert(std::is_base_of::value, "T must inherit from Item"); + return std::make_shared(); +} + +} // namespace database +} // namespace network +} // namespace comm