20#ifndef ORES_IAM_REPOSITORY_LOGIN_INFO_ENTITY_HPP
21#define ORES_IAM_REPOSITORY_LOGIN_INFO_ENTITY_HPP
24#include "sqlgen/Timestamp.hpp"
25#include "sqlgen/PrimaryKey.hpp"
33 constexpr static const char* schema =
"public";
34 constexpr static const char* tablename =
"ores_iam_login_info_tbl";
36 sqlgen::PrimaryKey<std::string> account_id;
37 std::string tenant_id;
39 std::string last_attempt_ip;
42 sqlgen::Timestamp<
"%Y-%m-%d %H:%M:%S"> last_login =
"9999-12-31 23:59:59";
44 int password_reset_required;
Database persistence layer for IAM domain types.
Definition account_entity.hpp:28
Represents login tracking information in the database.
Definition login_info_entity.hpp:32