feat : update

This commit is contained in:
2026-09-07 22:20:25 +07:00 Unverified
parent bdf29c930e
commit 826cb23a70
12 changed files with 4095 additions and 48 deletions
+3 -1
View File
@@ -662,7 +662,7 @@ export const artifactProfiles = guidesSchema.table("artifact_profile", {
substats: jsonb("substats").$type<string[]>().default([]).notNull(),
targets: jsonb("targets").$type<Array<{ stat: string; value: string }>>().default([]).notNull(),
targetConditions: jsonb("target_conditions")
.$type<Array<{ note: string | null; rows: Array<{ stat: string; value: string }> }>>()
.$type<Array<{ name?: string | null; note: 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(),
@@ -675,6 +675,7 @@ export const teamConditions = guidesSchema.table(
{
id: uuid("id").defaultRandom().primaryKey(),
guideId: uuid("guide_id").notNull().references(() => guides.id, { onDelete: "cascade" }),
name: varchar("name", { length: 120 }),
note: text("note"),
sortOrder: integer("sort_order").default(0).notNull(),
},
@@ -686,6 +687,7 @@ export const constellationConditions = guidesSchema.table(
{
id: uuid("id").defaultRandom().primaryKey(),
guideId: uuid("guide_id").notNull().references(() => guides.id, { onDelete: "cascade" }),
name: varchar("name", { length: 120 }),
note: text("note"),
sortOrder: integer("sort_order").default(0).notNull(),
},