feat(schema): add sortOrder column to hardware table
This commit is contained in:
@@ -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"])
|
export const deviceTypeEnum = pgEnum("device_type", ["handled", "console"])
|
||||||
|
|
||||||
@@ -6,5 +6,6 @@ export const hardware = pgTable("hardware", {
|
|||||||
slug: text("slug").primaryKey(),
|
slug: text("slug").primaryKey(),
|
||||||
name: text("name").notNull(),
|
name: text("name").notNull(),
|
||||||
deviceType: deviceTypeEnum("device_type").notNull(),
|
deviceType: deviceTypeEnum("device_type").notNull(),
|
||||||
|
sortOrder: integer("sort_order").default(0).notNull(),
|
||||||
createdAt: timestamp("created_at").defaultNow().notNull(),
|
createdAt: timestamp("created_at").defaultNow().notNull(),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user