from pydantic import BaseModel from typing import Union from datetime import date class PlayPlayer(BaseModel): name: str username: str score: Union[float, None] first_play : bool has_won : bool class Play(BaseModel): boardgame_id: int players: list[PlayPlayer] play_date: date duration: int #In minutes ignore_for_stats : bool location: str