From 49d36729361a7efb35abc9e0ef0cf51453adf21e Mon Sep 17 00:00:00 2001 From: c0de Date: Mon, 24 Oct 2022 19:12:48 -0500 Subject: [PATCH] Add extra time tracking --- GhostBallBot/database/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GhostBallBot/database/models.py b/GhostBallBot/database/models.py index 42b995b..9121ea0 100644 --- a/GhostBallBot/database/models.py +++ b/GhostBallBot/database/models.py @@ -25,6 +25,7 @@ class GameModel(BaseModel): pitch_value = IntegerField(null=True) date_created = DateTimeField(default=datetime.datetime.now) + date_ended = DateTimeField(null=True) class GuessModel(BaseModel): @@ -34,6 +35,7 @@ class GuessModel(BaseModel): player_name = CharField() guess = IntegerField() difference = IntegerField(null=True) + date_guessed = DateTimeField(null=True) # TODO: Add unique constraint for player_id and game_id # ie: one guess per player allowed per game