schema creation progress

This commit is contained in:
2025-12-07 22:18:01 +01:00
parent 2e354b435c
commit 2fcb504b9a
11 changed files with 336 additions and 168 deletions
+8 -6
View File
@@ -11,15 +11,15 @@ namespace matador::object {
class repository_node;
enum class relation_type : uint8_t {
BELONGS_TO,
HAS_ONE,
HAS_MANY
BelongsTo,
HasOne,
HasMany
};
static const utils::enum_mapper<relation_type> relation_type_enum({
{ relation_type::BELONGS_TO, "belongs_to" },
{ relation_type::HAS_ONE, "has_one" },
{ relation_type::HAS_MANY, "has_many" },
{ relation_type::BelongsTo, "belongs_to" },
{ relation_type::HasOne, "has_one" },
{ relation_type::HasMany, "has_many" },
});
class relation_endpoint {
@@ -43,6 +43,8 @@ public:
private:
template<typename Type>
friend class relation_completer;
template<typename Type>
friend class foreign_node_completer;
std::string field_name_;
relation_type type_;