feat(db): add hardware seed script, db:seed command, and initial migration

- Create lib/db/seed.ts with idempotent hardware seeding
- Add db:seed script and fix db:* scripts to load .env.local via bun --env-file
- Generate initial Drizzle migration (0000_crazy_nick_fury)
- Apply migration and seed 3 hardware devices (steamdeck-oled, steamdeck-lcd, steam-machine)
This commit is contained in:
2026-04-25 11:53:10 +08:00
parent 50f737f686
commit 65d13933bf
5 changed files with 696 additions and 4 deletions
+13
View File
@@ -0,0 +1,13 @@
{
"version": "7",
"dialect": "postgresql",
"entries": [
{
"idx": 0,
"version": "7",
"when": 1777089104474,
"tag": "0000_crazy_nick_fury",
"breakpoints": true
}
]
}