Daniel Schädler
4d5d7bc812
Only allow positive powers of two for playoff_teams_amount
2019-06-13 13:21:24 +02:00
Daniel Schädler
f5b610703c
Add two new parameters to tournament
...
instant_finalists_amount is the amount of teams that instantly are in
the finals after the group stage ends.
intermediate_round_participants_amount is the amount of teams that have
a chance to advance after group stage but must play a relegation game to
actually do so.
Both of these values need to match, so that
instant_finalists_amount + (intermediate_round_participants_amount / 2)
is a power of 2. Or to be more precise, the power of two that is saved
in playoff_teams_amount of the tournament.
2019-06-13 13:21:24 +02:00
Daniel Schädler
bd2af09339
Add field to tournament containing playoff_teams_amount
...
This field represents how many teams advance into playoff stage after
the group stage has ended.
2019-06-05 16:46:06 +02:00
Daniel Schädler
c1dc43948b
Fix typo in received_points
2019-06-05 09:49:21 +02:00
Daniel Schädler
68f9b3b2b3
Change Score to MatchScore & MatchScore score attribute to points
...
This is done to improve the naming and therefore make things easier to understand.
2018-11-30 14:15:48 +01:00
Daniel Schädler
4afa32542e
Change GroupScore attributes
2018-11-30 12:58:13 +01:00
Daniel Schädler
fd02a1ecaf
Add Position to Match in Database
2018-11-29 10:42:49 +01:00
Thor77
6e1af687ad
Add default for scores.score
2018-11-19 14:41:30 +01:00
Thor77
7252c720ae
Remove unique index from users.provider
2018-11-19 11:47:13 +01:00
Thor77
b424b64422
Rewrite database schema
2018-11-19 11:47:13 +01:00
Thor77
b742b3ed67
Move group scores into separate table
2018-11-19 11:47:12 +01:00
Thor77
07eb561f77
Implement Tournament-Team relation
2018-11-19 11:47:12 +01:00
Thor77
1d463b55c3
Fix cascade symbol invalid
2018-11-19 11:47:12 +01:00
Thor77
244da7a2e6
Add on_delete cascade attr to user-tournament fk
2018-11-19 11:47:11 +01:00
Thor77
d89c24a645
Add relation between Tournament and User
2018-11-19 11:47:11 +01:00
Thor77
683423b06a
Add unique index to tournament code
2018-11-19 11:47:11 +01:00
Thor77
c9421e6d42
Add Tournament model
2018-11-11 21:31:47 +01:00
Thor77
821c40c35c
Merge initial schema migrations
2018-11-11 19:57:59 +01:00