Complete main functionallity of backend and frontend.
This commit is contained in:
@@ -51,7 +51,9 @@ class MatchOut(BaseModel):
|
||||
winner_team_id: int | None = None
|
||||
|
||||
winner_next_match_id: str | None = None
|
||||
winner_next_match_slot: int | None = None
|
||||
loser_next_match_id: str | None = None
|
||||
loser_next_match_slot: int | None = None
|
||||
|
||||
sets: list[SetScore] = []
|
||||
|
||||
@@ -80,6 +82,7 @@ class TournamentOut(BaseModel):
|
||||
id: str
|
||||
name: str
|
||||
timestamp: datetime
|
||||
duration: int
|
||||
type: TournamentTypes
|
||||
team_count: int
|
||||
court_count: int
|
||||
@@ -98,8 +101,10 @@ class TournamentDetail(BaseModel):
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
||||
class TournamentUpdateResponse(TournamentDetail):
|
||||
class TournamentSettingsResponse(TournamentOut):
|
||||
code: str
|
||||
teams: list[TeamSchema]
|
||||
courts: list[CourtSchema]
|
||||
|
||||
|
||||
class Token(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user