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(), })