Add ranking fields to PerformanceDetailRead schema
This commit is contained in:
parent
6fdbe869cc
commit
945c126f42
1 changed files with 6 additions and 0 deletions
|
|
@ -124,6 +124,12 @@ class PerformanceDetailRead(PerformanceRead):
|
|||
gap: Optional[int] = 0
|
||||
times_played: Optional[int] = 0
|
||||
other_performances: List[PerformanceReadWithShow] = []
|
||||
# Ranking fields
|
||||
rank: Optional[int] = None
|
||||
total_versions: Optional[int] = None
|
||||
avg_rating: Optional[float] = None
|
||||
rating_count: Optional[int] = None
|
||||
is_heady: Optional[bool] = False
|
||||
|
||||
# --- Groups ---
|
||||
class GroupBase(SQLModel):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue