feat(guides): autosave structured guide data
This commit is contained in:
@@ -15,6 +15,8 @@ import {
|
||||
varchar,
|
||||
} from "drizzle-orm/pg-core";
|
||||
|
||||
import type { CatalogConstellation } from "@/lib/catalog/lunaris";
|
||||
|
||||
const timestamps = {
|
||||
createdAt: timestamp("created_at", { withTimezone: true })
|
||||
.defaultNow()
|
||||
@@ -445,6 +447,7 @@ export const catalogCharacters = pgTable(
|
||||
rarity: integer("rarity"),
|
||||
weaponType: varchar("weapon_type", { length: 64 }),
|
||||
imageKey: text("image_key").notNull(),
|
||||
constellations: jsonb("constellations").$type<CatalogConstellation[]>().default([]).notNull(),
|
||||
},
|
||||
(table) => [
|
||||
primaryKey({ columns: [table.version, table.key] }),
|
||||
|
||||
Reference in New Issue
Block a user