MCPcopy
hub / github.com/tortoise/tortoise-orm / Tournament

Class Tournament

examples/relations.py:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14class Tournament(Model):
15 id = fields.IntField(primary_key=True)
16 name = fields.TextField()
17
18 events: fields.ReverseRelation["Event"]
19
20 def __str__(self):
21 return self.name
22
23
24class Event(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…