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

Class Player

tests/test_future_annotations.py:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 name: str
40
41 class Player(SQLModel, table=True):
42 id: Annotated[int | None, Field(primary_key=True)] = None
43 name: str
44 team_id: Annotated[int | None, Field(foreign_key="team.id")] = None
45
46 engine = create_engine("sqlite://")
47 SQLModel.metadata.create_all(engine)

Callers 1

Calls 1

FieldFunction · 0.90

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…