feat: replace historical sync with Kaggle seed for complete 1930-2022 goal data

- scripts/seed.ts: one-time import of Kaggle FIFA dataset (matches_1930_2022.csv,
  world_cup.csv) covering all 964 matches and 2720 goals from 1930-2022 with full
  scorer names, minutes, penalties, and own goals for every tournament
- scripts/sync.ts: stripped to 2026 only (openfootball live data); historical years
  removed since Kaggle is now authoritative for 1930-2022
- Dockerfile: copy app/data into runner image; CMD runs seed.ts before server.js so
  a fresh deployment auto-seeds on first start (skips if already seeded)
- package.json: add 'seed' script; use --force to re-import from updated CSV files
- app/data/kaggle/: bundle Kaggle CSV files in repo

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-14 18:43:43 +02:00
parent 191888225f
commit 3955c7492b
9 changed files with 1969 additions and 206 deletions
+1
View File
@@ -8,6 +8,7 @@
"build": "next build",
"start": "next start",
"lint": "eslint",
"seed": "tsx scripts/seed.ts",
"sync": "tsx scripts/sync.ts",
"db:generate": "drizzle-kit generate",
"db:push": "drizzle-kit push"