Adding win and if the team is home to the database, calculations for win and lose streak, and returning the training data. Fixing sunrise sunset times

This commit is contained in:
2025-08-29 20:09:49 +00:00
parent 330c7445a6
commit 3950e99151
7 changed files with 221 additions and 144 deletions

View File

@@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS parks (
park_id CHAR(5) NOT NULL,
park_name VARCHAR,
lf_fence_distance SMALLINT UNSIGNED,
lf_fence_height, SMALLINT UNSIGNED,
lf_fence_height SMALLINT UNSIGNED,
ct_fence_distance SMALLINT UNSIGNED,
ct_fence_height SMALLINT UNSIGNED,
rf_fence_distance SMALLINT UNSIGNED,
@@ -59,6 +59,8 @@ CREATE TABLE IF NOT EXISTS team_game (
game_num TINYINT UNSIGNED,
score TINYINT UNSIGNED,
line_score CHAR(9),
win BIT,
home BIT,
at_bats TINYINT UNSIGNED,
hits TINYINT UNSIGNED,