The adjacency list pattern is a common relational pattern whereby a table contains a foreign key reference to itself. This is the most common way to represent hierarchical data in flat tables.
Must be added to basemodels (see has_many / belongs_to there)
The adjacency list pattern is a common relational pattern whereby a table contains a foreign key reference to itself. This is the most common way to represent hierarchical data in flat tables.
Must be added to basemodels (see has_many / belongs_to there)
Also see: http://docs.sqlalchemy.org/en/rel_0_7/orm/relationships.html