20#ifndef ORES_ACCOUNTS_REPOSITORY_ACCOUNT_ROLE_ENTITY_HPP
21#define ORES_ACCOUNTS_REPOSITORY_ACCOUNT_ROLE_ENTITY_HPP
24#include "sqlgen/Timestamp.hpp"
26namespace ores::accounts::repository {
36 constexpr static const char* schema =
"oresdb";
37 constexpr static const char* tablename =
"account_roles";
39 std::string account_id;
41 std::string assigned_by;
42 sqlgen::Timestamp<
"%Y-%m-%d %H:%M:%S"> assigned_at =
"9999-12-31 23:59:59";
43 sqlgen::Timestamp<
"%Y-%m-%d %H:%M:%S"> valid_from =
"9999-12-31 23:59:59";
44 sqlgen::Timestamp<
"%Y-%m-%d %H:%M:%S"> valid_to =
"9999-12-31 23:59:59";
Represents an account-role assignment in the database.
Definition account_role_entity.hpp:35