feat: add entryScreenshots table, wattHours/tdpMax on hardware, tdpWatts/youtubeVideoId on performanceEntries

This commit is contained in:
2026-05-09 22:12:08 +08:00
parent c20ef2a5f4
commit 8904a7b611
4 changed files with 41 additions and 2 deletions
+7 -1
View File
@@ -79,9 +79,15 @@ export const performanceEntries = pgTable(
settingsJson: jsonb("settings_json").$type<GameSettingCategory[]>(),
userNotes: text("user_notes"),
// Battery estimate (minutes)
// Battery estimate (minutes) — @deprecated: auto-computed from tdpWatts + hardware.wattHours
estimatedBatteryMin: integer("estimated_battery_min"),
// TDP tracking (watts) — user-set TDP cap during benchmark
tdpWatts: real("tdp_watts"),
// YouTube video linking
youtubeVideoId: text("youtube_video_id"),
// Custom system flag
customSystem: boolean("custom_system").default(false).notNull(),