20#ifndef ORES_ACCOUNTS_REPOSITORY_ACCOUNT_ENTITY_HPP
21#define ORES_ACCOUNTS_REPOSITORY_ACCOUNT_ENTITY_HPP
24#include "sqlgen/Timestamp.hpp"
25#include "sqlgen/PrimaryKey.hpp"
27namespace ores::accounts::repository {
33 constexpr static const char* schema =
"oresdb";
34 constexpr static const char* tablename =
"accounts";
36 sqlgen::PrimaryKey<std::string> id;
39 std::string password_hash;
40 std::string password_salt;
41 std::string totp_secret;
44 std::string modified_by;
45 sqlgen::Timestamp<
"%Y-%m-%d %H:%M:%S"> valid_from =
"9999-12-31 23:59:59";
46 sqlgen::Timestamp<
"%Y-%m-%d %H:%M:%S"> valid_to =
"9999-12-31 23:59:59";
Represents an account in the database.
Definition account_entity.hpp:32