Commit ef097e0c authored by sim's avatar sim

Add Node.user relationship

parent 534f706f
......@@ -39,6 +39,7 @@ class Node(Base):
# metadata (see https://bashelton.com/2014/03/updating-postgresql-json-fields-via-sqlalchemy/)
hyperdata = Column(JSONB, default=dict)
user = relationship(User)
parent = relationship('Node', remote_side=[id])
def __init__(self, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment