schema creation progress
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user