MCPcopy Index your code
hub / github.com/fastapi/sqlmodel / Team

Class Team

docs_src/tutorial/code_structure/tutorial001_py310/models.py:4–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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…