Backend
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# backend/app/constants.py
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class TournamentTypes(str, Enum):
|
||||
SINGLE = "Single"
|
||||
DOUBLE = "Double"
|
||||
ROUND_ROBIN = "Round_Robin"
|
||||
|
||||
|
||||
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"}
|
||||
Reference in New Issue
Block a user