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

Class Hero

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

Source from the content-addressed store, hash-verified

10
11
12class Hero(SQLModel, table=True):
13 id: int | None = Field(default=None, primary_key=True)
14 name: str = Field(index=True)
15 secret_name: str
16 age: int | None = Field(default=None, index=True)
17
18 team_id: int | None = Field(default=None, foreign_key="team.id")
19 team: Team | None = Relationship(back_populates="heroes")

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…