Created base play class

This commit is contained in:
Yarne Coppens 2024-08-02 11:43:30 +02:00
parent aad61804e6
commit b820f3b78c

View file

@ -1,4 +1,17 @@
from pydantic import BaseModel from pydantic import BaseModel
from datetime import date
class PlayPlayer(BaseModel):
name: str
username: str
score: float
first_play = bool
has_won = bool
class Play(BaseModel): class Play(BaseModel):
pass boardgame_id: int
players: list[PlayPlayer]
playdate: date
duration: int #In minutes
ignore_for_stats : bool
location: str