(class) League:
Size(how many people to let in the entire league): int
Random division placement: boolean
tiebreakers: foreign key (options=tiebreakers)
Divisions: many to many(LeagueDivision)
(class)LeagueDivision:
teams: many to many (Team)
max_size: int
matches: many to many (LeagueMatch)
(class)Point Attribution:
win: x points (int)
loss: x points (int)
tie: x points (int)
allow overtime loss: boolean
overtime loss: x points (int) (null=True)
allow overtime win: boolean
overtime win: x points (int) (null=True)
If a match goes to overtime and allow overtime loss is created the team will receive the amount of points specified by overtime loss. Consequently if allow overtime win is disabled, the winning team will win the points specified by win. However if allow overtime win is enabled the overtime win will be treated differently and the team will be given the points specified by overtime win.
Tiebreakers Options:
most points: boolean
best record(most wins/least draws/least losses): boolean
Fields:
(class) League: Size(how many people to let in the entire league): int Random division placement: boolean tiebreakers: foreign key (options=tiebreakers) Divisions: many to many(LeagueDivision)
(class)LeagueDivision: teams: many to many (Team) max_size: int matches: many to many (LeagueMatch)
(class)Point Attribution: win: x points (int) loss: x points (int) tie: x points (int) allow overtime loss: boolean overtime loss: x points (int) (null=True) allow overtime win: boolean overtime win: x points (int) (null=True)
If a match goes to overtime and allow overtime loss is created the team will receive the amount of points specified by overtime loss. Consequently if allow overtime win is disabled, the winning team will win the points specified by win. However if allow overtime win is enabled the overtime win will be treated differently and the team will be given the points specified by overtime win.
Tiebreakers Options: most points: boolean best record(most wins/least draws/least losses): boolean