20#ifndef ORES_IAM_REPOSITORY_TENANT_ENTITY_HPP
21#define ORES_IAM_REPOSITORY_TENANT_ENTITY_HPP
25#include "sqlgen/Timestamp.hpp"
26#include "sqlgen/PrimaryKey.hpp"
37 constexpr static const char* schema =
"public";
38 constexpr static const char* tablename =
"ores_iam_tenants_tbl";
40 sqlgen::PrimaryKey<std::string> id;
41 std::string tenant_id;
46 std::string description;
49 std::string modified_by;
50 std::string performed_by;
51 std::string change_reason_code;
52 std::string change_commentary;
53 sqlgen::Timestamp<
"%Y-%m-%d %H:%M:%S"> valid_from =
"9999-12-31 23:59:59";
54 sqlgen::Timestamp<
"%Y-%m-%d %H:%M:%S"> valid_to =
"9999-12-31 23:59:59";
57std::ostream& operator<<(std::ostream& s,
const tenant_entity& v);
Database persistence layer for IAM domain types.
Definition account_entity.hpp:28
Represents a tenant in the database.
Definition tenant_entity.hpp:36