From 34b75da04d9463879ddba3630b18a2ed8a557a5b Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Sat, 25 Apr 2026 18:19:42 +0800 Subject: [PATCH] feat(schema): add sortOrder column to hardware table --- lib/db/schema/hardware.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/db/schema/hardware.ts b/lib/db/schema/hardware.ts index 50ea668..206aef9 100644 --- a/lib/db/schema/hardware.ts +++ b/lib/db/schema/hardware.ts @@ -1,4 +1,4 @@ -import { pgEnum, pgTable, text, timestamp } from "drizzle-orm/pg-core" +import { integer, pgEnum, pgTable, text, timestamp } from "drizzle-orm/pg-core" export const deviceTypeEnum = pgEnum("device_type", ["handled", "console"]) @@ -6,5 +6,6 @@ export const hardware = pgTable("hardware", { slug: text("slug").primaryKey(), name: text("name").notNull(), deviceType: deviceTypeEnum("device_type").notNull(), + sortOrder: integer("sort_order").default(0).notNull(), createdAt: timestamp("created_at").defaultNow().notNull(), })