Commit Graph
8 Commits
Author SHA1 Message Date
adrianbonpin 327dce2b19 feat(database): add community presets and game comments tables, update games and performance entries schema
- Created new ENUM types for game source, online multiplayer status, frame generation method, and FSR version.
- Added `community_presets` table with relevant fields and constraints.
- Added `game_comments` table to store user comments on games.
- Updated `games` table to allow null steam_app_id and added source and online_multiplayer_status columns.
- Enhanced `performance_entries` table with new fields for FSR version, frame generation method, upvotes, downvotes, and verification details.
- Established foreign key constraints for new tables and updated existing ones.
- Created indexes to optimize queries on comments and performance entries.
2026-04-25 19:13:51 +08:00
adrianbonpin 5dd30665f7 feat(api): add upvote/downvote and best-entry endpoints to performance entries 2026-04-25 18:55:48 +08:00
adrianbonpin c3a85d1336 refactor: remove structured settings tables, use freeform JSON for presets and entries 2026-04-25 18:51:10 +08:00
adrianbonpin bd55c1d696 feat(schema): add barrel exports for all tables, generate migration 2026-04-25 18:24:12 +08:00
adrianbonpin a9cb8a328c feat(db): add lastLoginMethod field to user table for last-login-method plugin 2026-04-25 14:07:45 +08:00
adrianbonpin 78079779c9 feat(db): move auth schema into Drizzle structure and add user FK
- Move auth schema from auth-schema.ts to lib/db/schema/auth.ts
- Export auth tables (user, session, account, verification, passkey) via barrel
- Add FK from performanceEntries.userId to user.id
- Generate and apply migration for auth tables + user FK
- Remove unused echarts dependency
2026-04-25 12:29:42 +08:00
adrianbonpin ab0fe349a1 fix: remove unused import, ignore drizzle meta files 2026-04-25 12:06:41 +08:00
adrianbonpin 65d13933bf 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)
2026-04-25 11:53:10 +08:00