Commit Graph
9 Commits
Author SHA1 Message Date
adrianbonpin b94c29da61 feat: add reports table schema for preset reporting 2026-04-27 15:30:51 +08:00
adrianbonpin 07467a4812 refactor: remove communityPresets schema, API, and routes 2026-04-27 14:29:30 +08:00
adrianbonpin 9964c99c4a feat: add savedGames schema 2026-04-26 09:59:47 -05: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 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 50f737f686 feat(db): add performance entries and game platform support schemas
- Create performanceEntries table with FPS metrics, environment details,
  feature flags (FSR, frame gen), load times, settings JSON, and moderation
- Create gamePlatformSupport table with Proton/anti-cheat status enums
  and composite unique constraint on (gameId, hardwareSlug)
- Update schema barrel export to include both new tables
2026-04-25 11:45:49 +08:00
adrianbonpin 63a6e8b7d6 fix(db): comment out forward schema exports to prevent build errors 2026-04-25 11:42:57 +08:00
adrianbonpin 89cb385e33 feat(db): add core Drizzle schema tables (hardware, games, gameVersions)
- Create lib/db/schema/ directory with barrel export index.ts
- Add hardware table with device_type enum (handled/console)
- Add games table with Steam metadata, sync fields, and JSON genres
- Add game_versions table with composite unique (gameId, buildId) and cascade delete

Refs: Chunk 2 of database schema implementation
2026-04-25 11:39:20 +08:00