This commit is contained in:
Redsandy
2026-03-14 18:48:57 +03:00
parent 1d1350fc13
commit 3ea4fb4771
40 changed files with 2150 additions and 0 deletions

22
app/schemas/score.py Normal file
View File

@@ -0,0 +1,22 @@
import uuid
from datetime import date
from pydantic import BaseModel
class ScoreRead(BaseModel):
user_id: uuid.UUID
date: date
base_pts: int
bonus_pts: int
total_pts: int
streak_days: int
class LeaderboardEntry(BaseModel):
user_id: uuid.UUID
username: str
avatar_url: str | None = None
total_pts: int
total_area_m2: float
zone_count: int
rank: int