MCPcopy
hub / github.com/fastapi/sqlmodel / Team

Class Team

docs_src/tutorial/code_structure/tutorial002_py310/team_model.py:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8
9class Team(SQLModel, table=True):
10 id: int | None = Field(default=None, primary_key=True)
11 name: str = Field(index=True)
12 headquarters: str
13
14 heroes: list["Hero"] = Relationship(back_populates="team")

Callers 1

create_heroesFunction · 0.70

Calls 2

FieldFunction · 0.90
RelationshipFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…