feat(schema): add settingCategories table
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { integer, pgTable, text, timestamp } from "drizzle-orm/pg-core"
|
||||
|
||||
export const settingCategories = pgTable("setting_categories", {
|
||||
id: text("id")
|
||||
.primaryKey()
|
||||
.$defaultFn(() => crypto.randomUUID()),
|
||||
name: text("name").notNull(),
|
||||
slug: text("slug").notNull().unique(),
|
||||
sortOrder: integer("sort_order").default(0).notNull(),
|
||||
createdAt: timestamp("created_at").defaultNow().notNull(),
|
||||
})
|
||||
Reference in New Issue
Block a user