20#ifndef ORES_COMPUTE_REPOSITORY_PLATFORM_ENTITY_HPP
21#define ORES_COMPUTE_REPOSITORY_PLATFORM_ENTITY_HPP
26#include "sqlgen/Timestamp.hpp"
27#include "sqlgen/PrimaryKey.hpp"
29namespace ores::compute::repository {
31struct platform_entity {
32 constexpr static const char* schema =
"public";
33 constexpr static const char* tablename =
"ores_compute_platforms_tbl";
35 sqlgen::PrimaryKey<std::string> id;
36 std::string tenant_id;
39 std::string display_name;
40 std::string description;
41 std::string os_family;
43 std::optional<std::string> abi;
45 std::string modified_by;
46 std::string performed_by;
47 std::string change_reason_code;
48 std::string change_commentary;
49 std::optional<sqlgen::Timestamp<
"%Y-%m-%d %H:%M:%S">> valid_from =
"9999-12-31 23:59:59";
50 std::optional<sqlgen::Timestamp<
"%Y-%m-%d %H:%M:%S">> valid_to =
"9999-12-31 23:59:59";
53std::ostream& operator<<(std::ostream& s,
const platform_entity& v);