| 116 | |
| 117 | |
| 118 | class Parent(Base): |
| 119 | __tablename__ = "parent" |
| 120 | id = Column(Integer, primary_key=True) |
| 121 | child_id = Column(Integer) |
| 122 | child_version_id = Column(Integer) |
| 123 | child = relationship("Child", backref=backref("parent", uselist=False)) |
| 124 | |
| 125 | __table_args__ = ( |
| 126 | ForeignKeyConstraint( |
| 127 | ["child_id", "child_version_id"], ["child.id", "child.version_id"] |
| 128 | ), |
| 129 | ) |
| 130 | |
| 131 | |
| 132 | class Child(Versioned, Base): |
no test coverage detected