Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. Groups(Base):
  2. id = Column(Integer, primary_key=True)
  3. code = Column(Integer, index=True)
  4. parent_code = Column(Integer, index=True)
  5.  
  6. children = relationship(Groups,
  7. primaryjoin='Groups.code=Groups.parent_code', uselist=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement