refactor: convert to bun workspaces monorepo
- Move web app into apps/web/ - Create packages/shared/ with shared types - Create plugins/decky-vault/ scaffold - Root package.json manages workspaces only
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { integer, pgEnum, pgTable, real, text, timestamp } from "drizzle-orm/pg-core"
|
||||
|
||||
export const deviceTypeEnum = pgEnum("device_type", ["handheld", "console"])
|
||||
|
||||
export const hardware = pgTable("hardware", {
|
||||
slug: text("slug").primaryKey(),
|
||||
name: text("name").notNull(),
|
||||
deviceType: deviceTypeEnum("device_type").notNull(),
|
||||
image: text("image"),
|
||||
wattHours: real("watt_hours"),
|
||||
tdpMax: real("tdp_max"),
|
||||
sortOrder: integer("sort_order").default(0).notNull(),
|
||||
createdAt: timestamp("created_at").defaultNow().notNull(),
|
||||
})
|
||||
Reference in New Issue
Block a user