feat : update
This commit is contained in:
+6
-2
@@ -524,6 +524,7 @@ export const weaponConditions = guidesSchema.table(
|
||||
guideId: uuid("guide_id").notNull().references(() => guides.id, { onDelete: "cascade" }),
|
||||
name: varchar("name", { length: 120 }),
|
||||
note: text("note"),
|
||||
iconMediaId: uuid("icon_media_id").references(() => media.id, { onDelete: "restrict" }),
|
||||
sortOrder: integer("sort_order").default(0).notNull(),
|
||||
},
|
||||
(table) => [index("weapon_condition_order_idx").on(table.guideId, table.sortOrder)],
|
||||
@@ -551,6 +552,7 @@ export const artifactConditions = guidesSchema.table(
|
||||
guideId: uuid("guide_id").notNull().references(() => guides.id, { onDelete: "cascade" }),
|
||||
name: varchar("name", { length: 120 }),
|
||||
note: text("note"),
|
||||
iconMediaId: uuid("icon_media_id").references(() => media.id, { onDelete: "restrict" }),
|
||||
sortOrder: integer("sort_order").default(0).notNull(),
|
||||
},
|
||||
(table) => [index("artifact_condition_order_idx").on(table.guideId, table.sortOrder)],
|
||||
@@ -588,12 +590,12 @@ export const artifactProfiles = guidesSchema.table("artifact_profile", {
|
||||
circlet: jsonb("circlet").$type<string[]>().default([]).notNull(),
|
||||
substats: jsonb("substats").$type<string[]>().default([]).notNull(),
|
||||
recommendedConditions: jsonb("recommended_conditions")
|
||||
.$type<Array<{ name?: string | null; note: string | null; sands: string[]; goblet: string[]; circlet: string[]; substats: string[] }>>()
|
||||
.$type<Array<{ name?: string | null; note: string | null; iconMediaId?: string | null; sands: string[]; goblet: string[]; circlet: string[]; substats: string[] }>>()
|
||||
.default([])
|
||||
.notNull(),
|
||||
targets: jsonb("targets").$type<Array<{ stat: string; value: string }>>().default([]).notNull(),
|
||||
targetConditions: jsonb("target_conditions")
|
||||
.$type<Array<{ name?: string | null; note: string | null; rows: Array<{ stat: string; value: string }> }>>()
|
||||
.$type<Array<{ name?: string | null; note: string | null; iconMediaId?: string | null; rows: Array<{ stat: string; value: string }> }>>()
|
||||
.default([])
|
||||
.notNull(),
|
||||
talents: jsonb("talents").$type<Array<{ type: "NA" | "E" | "Q"; priority: number; level?: string; relationToNext?: "gt" | "gte" | "eq" }>>().default([]).notNull(),
|
||||
@@ -608,6 +610,7 @@ export const teamConditions = guidesSchema.table(
|
||||
guideId: uuid("guide_id").notNull().references(() => guides.id, { onDelete: "cascade" }),
|
||||
name: varchar("name", { length: 120 }),
|
||||
note: text("note"),
|
||||
iconMediaId: uuid("icon_media_id").references(() => media.id, { onDelete: "restrict" }),
|
||||
sortOrder: integer("sort_order").default(0).notNull(),
|
||||
},
|
||||
(table) => [index("team_condition_order_idx").on(table.guideId, table.sortOrder)],
|
||||
@@ -620,6 +623,7 @@ export const constellationConditions = guidesSchema.table(
|
||||
guideId: uuid("guide_id").notNull().references(() => guides.id, { onDelete: "cascade" }),
|
||||
name: varchar("name", { length: 120 }),
|
||||
note: text("note"),
|
||||
iconMediaId: uuid("icon_media_id").references(() => media.id, { onDelete: "restrict" }),
|
||||
sortOrder: integer("sort_order").default(0).notNull(),
|
||||
},
|
||||
(table) => [index("constellation_condition_order_idx").on(table.guideId, table.sortOrder)],
|
||||
|
||||
Reference in New Issue
Block a user