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

15
app/models/score.py Normal file
View File

@@ -0,0 +1,15 @@
import uuid
from datetime import date, datetime, timezone
from sqlmodel import SQLModel, Field
class Score(SQLModel, table=True):
__tablename__ = "scores"
id: uuid.UUID = Field(default_factory=uuid.uuid4, primary_key=True)
user_id: uuid.UUID = Field(foreign_key="users.id", index=True)
date: date
base_pts: int = 0
bonus_pts: int = 0
total_pts: int = 0
streak_days: int = 0