...
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
...
...
Sanction Models
Infractions are the rules, penalties are violations of infractions, sanctions define infraction accumulation and suspensions are the violation of sanctions.
Sanction
...
Accumulation properties specify when the Sanction
is applicable and behaviour properties specify what the resulting Suspension
will be defined as.
...
SanctionMember
List of infractions that apply under may trigger a rulesanction
Property | Type | Description |
---|---|---|
id | uuid | |
sanctionId | id | |
infractionId | id |
...
Property | Type | Description |
---|---|---|
id | uuid | |
seasonId | enum | |
startDate | date | |
endDate | date | |
officeId | id |
...
Property | Type | Description |
---|---|---|
id | uuid | |
seasonId | enum | |
games | number | Optional - Number of games the accumulation requires |
days | number | Number of days |
officeId | id |
...
Property | Type | Description |
---|---|---|
id | uuid | |
gameId | id | Game the suspension originated in |
participantId | id | Participant that was suspended |
teamId | id | Team that the participant is suspended in |
sanctionId | id | Sanction that was determined by the rulebook sanction rules |
penaltyId | id | Penalty that resulted in the suspension |
positionGroup | enum | Position that this participant was suspended in. Player, Staff |
durationType | enum | Definite or Indefinite. This is required to be the same as the sanction duration |
minimumGames | number | Minimum number of games required for this suspension Optional when indefinite. Set by system. |
requiredGames | number | Number of games required to complete the suspension. Optional when Indefinite. Required to be >= minimumGames |
expiry | date | Optional - Date when the suspension will expire if the games requirement isn’t met |
status | enum | Pending, Appealed, Active, Completed, Cancelled, Expired |
externalId | uuid | For syncing with Spordle ID |
Legacy suspension options (deprecated) | ||
| enum | Deprecated, replaced by sanctionId |
...
Implementation
Unhardcoding
Status | ||||
---|---|---|---|---|
|
...