feat(schema): add settingCategories table

This commit is contained in:
2026-04-25 18:19:57 +08:00
parent 34b75da04d
commit 5f71ed93cc
+11
View File
@@ -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(),
})