From 877aa766e7574d7b5f865e23e2a5ec8b4b67e0da Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Sun, 26 Apr 2026 10:09:18 -0500 Subject: [PATCH] feat: update performanceEntries schema - typed settingsJson, add launchOptions --- lib/db/schema/performanceEntries.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/db/schema/performanceEntries.ts b/lib/db/schema/performanceEntries.ts index 9cb10a3..2891e43 100644 --- a/lib/db/schema/performanceEntries.ts +++ b/lib/db/schema/performanceEntries.ts @@ -26,6 +26,11 @@ export const frameGenMethodEnum = pgEnum("frame_gen_method", [ "dlss_fg", ]) +export type GameSettingCategory = { + category: string + settings: { title: string; value: string | number | boolean }[] +} + export const performanceEntries = pgTable( "performance_entries", { @@ -61,8 +66,11 @@ export const performanceEntries = pgTable( loadTimeSsd: real("load_time_ssd"), loadTimeSd: real("load_time_sd"), + // Launch options (Steam launch options string) + launchOptions: text("launch_options"), + // Settings & notes - settingsJson: jsonb("settings_json").$type>(), + settingsJson: jsonb("settings_json").$type(), userNotes: text("user_notes"), // Moderation