MCPcopy Index your code
hub / github.com/tortoise/tortoise-orm / Event

Class Event

examples/functions.py:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17
18class Event(Model):
19 id = fields.IntField(primary_key=True)
20 name = fields.TextField()
21 tournament: fields.ForeignKeyRelation[Tournament] = fields.ForeignKeyField(
22 Tournament, related_name="events"
23 )
24 participants: fields.ManyToManyRelation["Team"] = fields.ManyToManyField(
25 "models.Team", related_name="events", through="event_team"
26 )
27
28 def __str__(self):
29 return self.name
30
31
32class Team(Model):

Callers 1

runFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…