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

Class Tournament

tests/testmodels.py:70–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69
70class Tournament(Model):
71 id = fields.SmallIntField(primary_key=True)
72 name = fields.CharField(max_length=255)
73 desc = fields.TextField(null=True)
74 created = fields.DatetimeField(auto_now_add=True, db_index=True)
75
76 events: fields.ReverseRelation["Event"]
77 minrelations: fields.ReverseRelation["MinRelation"]
78 uniquetogetherfieldswithfks: fields.ReverseRelation["UniqueTogetherFieldsWithFK"]
79
80 class PydanticMeta:
81 exclude = ("minrelations", "uniquetogetherfieldswithfks")
82
83 def __str__(self):
84 return self.name
85
86
87class Reporter(Model):

Callers 15

test_basicFunction · 0.90
test_filteringFunction · 0.90
test_aggregationFunction · 0.90
atomic_decorated_funcFunction · 0.90
test_transactionsFunction · 0.90
bound_to_succeedFunction · 0.90
tournament_model_unsavedFunction · 0.90
test_createFunction · 0.90
test_force_createFunction · 0.90
test_force_updateFunction · 0.90

Calls

no outgoing calls

Tested by 15

test_basicFunction · 0.72
test_filteringFunction · 0.72
test_aggregationFunction · 0.72
atomic_decorated_funcFunction · 0.72
test_transactionsFunction · 0.72
bound_to_succeedFunction · 0.72
tournament_model_unsavedFunction · 0.72
test_createFunction · 0.72
test_force_createFunction · 0.72
test_force_updateFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…