Created base play class
This commit is contained in:
parent
aad61804e6
commit
b820f3b78c
1 changed files with 14 additions and 1 deletions
|
|
@ -1,4 +1,17 @@
|
|||
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):
|
||||
pass
|
||||
boardgame_id: int
|
||||
players: list[PlayPlayer]
|
||||
playdate: date
|
||||
duration: int #In minutes
|
||||
ignore_for_stats : bool
|
||||
location: str
|
||||
Loading…
Reference in a new issue