From the SQLAlchemy documentation I\'ve been able to create the parent-child relationship that I need.
class Node(db.Model): __tablename__ = \'node\'