Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Groups(Base):
- id = Column(Integer, primary_key=True)
- code = Column(Integer, index=True)
- parent_code = Column(Integer, index=True)
- children = relationship(Groups,
- primaryjoin='Groups.code=Groups.parent_code', uselist=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement