| 22 | |
| 23 | # Define your classes |
| 24 | class Department(Base): |
| 25 | __tablename__ = "departments" |
| 26 | |
| 27 | id = Column(Integer, primary_key=True) |
| 28 | name = Column(String, nullable=False) |
| 29 | |
| 30 | employees = relationship("Employee", back_populates="department") |
| 31 | |
| 32 | |
| 33 | class Employee(Base): |
no outgoing calls
searching dependent graphs…