adrianbonpin
3388bf42b5
feat: add database indexes for frequent query patterns
2026-05-16 16:57:23 +08:00
adrianbonpin
3a9ac815e5
feat: drop estimated_battery_min column — Phase 1 migration (Tasks 1.1-1.3)
2026-05-10 04:52:44 +08:00
adrianbonpin
8904a7b611
feat: add entryScreenshots table, wattHours/tdpMax on hardware, tdpWatts/youtubeVideoId on performanceEntries
2026-05-09 22:12:08 +08:00
adrianbonpin
f59ef61634
feat: add storage_objects schema for R2 tracking
2026-05-09 12:44:49 +08:00
adrianbonpin
824fbbd13f
feat: rearrange game benchmark wizard and improve overall
2026-05-01 01:18:13 +08:00
adrianbonpin
4cfd046953
feat: create saved filters table
2026-04-30 19:16:45 +08:00
adrianbonpin
4c0284ef9e
fix: add onDelete set null to reviewedBy FK
2026-04-30 19:14:45 +08:00
adrianbonpin
4e324fa6e0
feat: create community suggestions table
2026-04-30 19:07:54 +08:00
adrianbonpin
33b0198506
fix: add notNull constraints to playability fields
2026-04-30 19:04:02 +08:00
adrianbonpin
d21e83897f
feat: add playability fields to games and platform support schemas
2026-04-30 18:59:38 +08:00
adrianbonpin
09bf8f64d6
fix: use pgEnum for steamReviewSentiment
2026-04-30 18:50:48 +08:00
adrianbonpin
5dfd8db578
feat: add steam review fields to games schema
2026-04-30 18:46:18 +08:00
adrianbonpin
861ac7dfdc
schema: add sync error tracking columns to games table
2026-04-29 10:33:53 +08:00
adrianbonpin
b8173bd8f8
feat: non-Steam game editing API, createdBy tracking, and source badges in search
2026-04-29 00:16:43 +08:00
adrianbonpin
cc34fd17ef
feat: add pinned presets with admin pin/unpin and dedicated section
2026-04-28 23:32:32 +08:00
adrianbonpin
799bfbbf31
feat: add system requirements, store stats, and pricing to game schema and steam sync
2026-04-28 23:13:08 +08:00
adrianbonpin
943fcff12b
feat: add fps_one_percent_low column to performance entries
2026-04-28 22:39:23 +08:00
adrianbonpin
ecd83b1d70
fix: rename device_type enum 'handled' to 'handheld', add image column
2026-04-27 20:33:25 +08:00
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
91de833417
feat: replace fsrVersion with upscalerType/upscalerVersion, add battery & custom system columns
2026-04-27 07:18:43 +08:00
adrianbonpin
877aa766e7
feat: update performanceEntries schema - typed settingsJson, add launchOptions
2026-04-26 10:09:18 -05:00
adrianbonpin
9964c99c4a
feat: add savedGames schema
2026-04-26 09:59:47 -05:00
adrianbonpin
9ff44e3d15
feat: add echarts dependencies + preset performance link schema
2026-04-26 15:38:23 +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
bc6fc493f6
fix: resolve build, lint, and type errors - add paramName support to CRUD builder
2026-04-25 18:36:52 +08:00
adrianbonpin
1b92aecdb8
feat(db): seed settingCategories and settingDefinitions with graphics/display/audio/controls/gameplay
2026-04-25 18:32:31 +08:00
adrianbonpin
bd55c1d696
feat(schema): add barrel exports for all tables, generate migration
2026-04-25 18:24:12 +08:00
adrianbonpin
1412807a04
feat(schema): add gameComments table with threading and upvotes
2026-04-25 18:21:18 +08:00
adrianbonpin
7e9dc88a49
feat(schema): add presetSettings join table
2026-04-25 18:20:58 +08:00
adrianbonpin
51e3f51846
feat(schema): add communityPresets table
2026-04-25 18:20:39 +08:00
adrianbonpin
a60be8c0a4
feat(schema): add settingDefinitions table with input type and impact level enums
2026-04-25 18:20:19 +08:00
adrianbonpin
5f71ed93cc
feat(schema): add settingCategories table
2026-04-25 18:19:57 +08:00
adrianbonpin
34b75da04d
feat(schema): add sortOrder column to hardware table
2026-04-25 18:19:42 +08:00
adrianbonpin
a31b5ea130
feat(schema): replace FSR/FrameGen booleans with enums, add verification fields to performanceEntries
2026-04-25 18:19:20 +08:00
adrianbonpin
3da593e619
feat(schema): add source enum, nullable steamAppId, onlineMultiplayerStatus to games table
2026-04-25 18:18:48 +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
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
adrianbonpin
ad3fd31feb
feat(db): setup drizzle config, client and package scripts
...
- Add drizzle.config.ts with PostgreSQL dialect configuration
- Create lib/db/index.ts with Drizzle ORM client and pg Pool
- Add db:generate, db:migrate, db:studio, db:push scripts to package.json
Part of Chunk 1: Drizzle Config & DB Client setup
2026-04-25 11:32:13 +08:00