20#ifndef ORES_ACCOUNTS_REPOSITORY_PERMISSION_ENTITY_HPP
21#define ORES_ACCOUNTS_REPOSITORY_PERMISSION_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 =
"permissions";
36 sqlgen::PrimaryKey<std::string> id;
38 std::string description;
39 sqlgen::Timestamp<
"%Y-%m-%d %H:%M:%S"> valid_from =
"9999-12-31 23:59:59";
40 sqlgen::Timestamp<
"%Y-%m-%d %H:%M:%S"> valid_to =
"9999-12-31 23:59:59";
Represents a permission in the database.
Definition permission_entity.hpp:32