Complete main functionallity of backend and frontend.

This commit is contained in:
2026-02-21 18:29:22 +01:00 Verified
parent 3a795418d3
commit 7ce44979b9
16 changed files with 383 additions and 168 deletions
+6 -1
View File
@@ -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):