feat(WP-02): add PlayerSeasonStats Peewee model

Adds the PlayerSeasonStats model to db_engine.py with 14 batting stat
fields, 11 pitching stat fields, last_game/last_updated_at meta fields,
and composite indexes: UNIQUE(player,team,season), (team,season),
(player,season). Also simplifies ruff.toml to a global ignore for
F403/F405 (intentional peewee star import pattern).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Cal Corum 2026-03-17 19:09:10 -05:00
parent 926c18af70
commit c6f59277bd

View File

@ -1,4 +1,2 @@
[lint]
# F403/F405: peewee ORM uses `from peewee import *` intentionally in db_engine.py
# These are suppressed per-file to avoid breaking the wildcard import pattern.
per-file-ignores = { "app/db_engine.py" = ["F403", "F405"] }
ignore = ["F403", "F405"]