feat(guides): autosave structured guide data
CI / Verify (push) Successful in 57s
CI / Build immutable images and deploy (push) Successful in 3m10s

This commit is contained in:
2026-08-29 18:13:02 +00:00 Unverified
parent c4fcf3f996
commit ac9a733370
14 changed files with 3794 additions and 68 deletions
+3
View File
@@ -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] }),