feat : update
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user