MCPcopy
hub / github.com/langroid/langroid / Employee

Class Employee

tests/main/sql_chat/test_sql_chat_agent.py:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33class Employee(Base):
34 __tablename__ = "employees"
35
36 id = Column(Integer, primary_key=True)
37 name = Column(String, nullable=False)
38 department_id = Column(Integer, ForeignKey("departments.id"), nullable=False)
39
40 department = relationship("Department", back_populates="employees")
41 sales = relationship("Sale", back_populates="employee")
42
43
44class Sale(Base):

Callers 1

mock_db_sessionFunction · 0.70

Calls

no outgoing calls

Tested by 1

mock_db_sessionFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…