| 42 | |
| 43 | |
| 44 | class Sale(Base): |
| 45 | __tablename__ = "sales" |
| 46 | |
| 47 | id = Column(Integer, primary_key=True) |
| 48 | amount = Column(Integer, nullable=False) |
| 49 | employee_id = Column(Integer, ForeignKey("employees.id"), nullable=False) |
| 50 | |
| 51 | employee = relationship("Employee", back_populates="sales") |
| 52 | |
| 53 | |
| 54 | @pytest.fixture |
no outgoing calls
searching dependent graphs…