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
+3 -1
View File
@@ -1,4 +1,4 @@
import { integer, pgEnum, pgTable, text, timestamp } from "drizzle-orm/pg-core"
import { integer, pgEnum, pgTable, real, text, timestamp } from "drizzle-orm/pg-core"
export const deviceTypeEnum = pgEnum("device_type", ["handheld", "console"])
@@ -7,6 +7,8 @@ export const hardware = pgTable("hardware", {
name: text("name").notNull(),
deviceType: deviceTypeEnum("device_type").notNull(),
image: text("image"),
wattHours: real("watt_hours"),
tdpMax: real("tdp_max"),
sortOrder: integer("sort_order").default(0).notNull(),
createdAt: timestamp("created_at").defaultNow().notNull(),
})