34 lines
523 B
Python
34 lines
523 B
Python
# backend/app/constants.py
|
|
from enum import Enum
|
|
|
|
|
|
class TournamentTypes(str, Enum):
|
|
SINGLE = "Single"
|
|
DOUBLE = "Double"
|
|
|
|
|
|
class BracketType(str, Enum):
|
|
WINNERS = "Winners"
|
|
LOSERS = "Losers"
|
|
FINALS = "Finals"
|
|
|
|
|
|
class MatchSourceType(str, Enum):
|
|
WINNER = "Winner"
|
|
LOSER = "Loser"
|
|
|
|
|
|
class MatchStatus(str, Enum):
|
|
PENDING = "Pending"
|
|
SCHEDULED = "Scheduled"
|
|
FINISHED = "Finished"
|
|
|
|
|
|
class WinnerSide(str, Enum):
|
|
P1 = "p1"
|
|
P2 = "p2"
|
|
NONE = "none"
|
|
|
|
|
|
SUCCESS = {"status": "ok"}
|