renamed schema to repository
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
namespace matador::object {
|
||||
|
||||
class schema_node;
|
||||
class repository_node;
|
||||
|
||||
enum class relation_type : uint8_t {
|
||||
BELONGS_TO,
|
||||
@@ -24,14 +24,14 @@ static const utils::enum_mapper<relation_type> relation_type_enum({
|
||||
|
||||
class relation_endpoint {
|
||||
public:
|
||||
relation_endpoint(std::string field_name, relation_type type, const std::shared_ptr<schema_node>& node);
|
||||
relation_endpoint(std::string field_name, relation_type type, const std::shared_ptr<repository_node>& node);
|
||||
|
||||
[[nodiscard]] std::string field_name() const;
|
||||
[[nodiscard]] relation_type type() const;
|
||||
[[nodiscard]] std::string type_name() const;
|
||||
[[nodiscard]] const schema_node& node() const;
|
||||
[[nodiscard]] const repository_node& node() const;
|
||||
|
||||
[[nodiscard]] std::shared_ptr<schema_node> node_ptr() const;
|
||||
[[nodiscard]] std::shared_ptr<repository_node> node_ptr() const;
|
||||
|
||||
[[nodiscard]] bool is_has_one() const;
|
||||
[[nodiscard]] bool is_has_many() const;
|
||||
@@ -46,7 +46,7 @@ private:
|
||||
|
||||
std::string field_name_;
|
||||
relation_type type_;
|
||||
std::shared_ptr<schema_node> node_;
|
||||
std::shared_ptr<repository_node> node_;
|
||||
std::shared_ptr<relation_endpoint> foreign_endpoint_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user