feat : update
CI / Verify (push) Successful in 1m21s
CI / Build immutable images and deploy (push) Successful in 3m12s

This commit is contained in:
2026-09-06 14:47:11 +07:00 Unverified
parent 37d6d6703f
commit c3a7a44d02
19 changed files with 4218 additions and 38 deletions
+15
View File
@@ -18,6 +18,7 @@ import {
import type {
CatalogAscensionGroup,
CatalogBaseStat,
CatalogConstellation,
CatalogTalent,
} from "@/lib/catalog/lunaris";
@@ -456,6 +457,7 @@ export const catalogCharacters = catalogSchema.table(
constellations: jsonb("constellations").$type<CatalogConstellation[]>().default([]).notNull(),
talents: jsonb("talents").$type<CatalogTalent[]>().default([]).notNull(),
ascension: jsonb("ascension").$type<CatalogAscensionGroup[]>().default([]).notNull(),
baseStats: jsonb("base_stats").$type<CatalogBaseStat[]>().default([]).notNull(),
},
(table) => [
primaryKey({ columns: [table.key] }),
@@ -537,6 +539,19 @@ export const guides = guidesSchema.table(
coverMediaId: uuid("cover_media_id")
.notNull()
.references(() => media.id, { onDelete: "restrict" }),
posterArtMediaId: uuid("poster_art_media_id").references(() => media.id, {
onDelete: "set null",
}),
posterArtOffsetX: integer("poster_art_offset_x").default(0).notNull(),
posterArtOffsetY: integer("poster_art_offset_y").default(0).notNull(),
posterTopColors: jsonb("poster_top_colors")
.$type<[string, string]>()
.default(["#000000", "#000000"])
.notNull(),
posterBottomColors: jsonb("poster_bottom_colors")
.$type<[string, string]>()
.default(["#000000", "#000000"])
.notNull(),
version: integer("version").default(1).notNull(),
isPublic: boolean("is_public").default(false).notNull(),
sortOrder: integer("sort_order").default(0).notNull(),