átlagos kiegészítséek jó sok

This commit is contained in:
Roo
2026-03-22 11:02:05 +00:00
parent f53e0b53df
commit 5d44339f21
249 changed files with 20922 additions and 2253 deletions

View File

@@ -0,0 +1,36 @@
from pydantic import BaseModel
from typing import List, Optional
from datetime import datetime, date
class SeasonResponse(BaseModel):
id: int
name: str
start_date: date
end_date: date
is_active: bool
class Config:
from_attributes = True
class UserStatResponse(BaseModel):
user_id: int
total_xp: int
current_level: int
restriction_level: int
penalty_quota_remaining: int
banned_until: Optional[datetime]
class Config:
from_attributes = True
class LeaderboardEntry(BaseModel):
user_id: int
username: str # email or person name
total_xp: int
current_level: int
class Config:
from_attributes = True