feat(artifact) : add tier-list conditions
CI / Build immutable images and deploy (push) Successful in 6m36s
CI / Build immutable images and deploy (push) Successful in 6m36s
This commit is contained in:
+14
-2
@@ -366,15 +366,27 @@ export const weaponRecommendations = guidesSchema.table(
|
||||
(table) => [index("weapon_recommendation_order_idx").on(table.conditionId, table.sortOrder)],
|
||||
);
|
||||
|
||||
export const artifactConditions = guidesSchema.table(
|
||||
"artifact_condition",
|
||||
{
|
||||
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(),
|
||||
},
|
||||
(table) => [index("artifact_condition_order_idx").on(table.guideId, table.sortOrder)],
|
||||
);
|
||||
|
||||
export const artifactGroups = guidesSchema.table(
|
||||
"artifact_group",
|
||||
{
|
||||
id: uuid("id").defaultRandom().primaryKey(),
|
||||
guideId: uuid("guide_id").notNull().references(() => guides.id, { onDelete: "cascade" }),
|
||||
conditionId: uuid("condition_id").notNull().references(() => artifactConditions.id, { onDelete: "cascade" }),
|
||||
name: text("name").notNull(),
|
||||
sortOrder: integer("sort_order").default(0).notNull(),
|
||||
},
|
||||
(table) => [index("artifact_group_order_idx").on(table.guideId, table.sortOrder)],
|
||||
(table) => [index("artifact_group_order_idx").on(table.conditionId, table.sortOrder)],
|
||||
);
|
||||
|
||||
export const artifactRecommendations = guidesSchema.table(
|
||||
|
||||
Reference in New Issue
Block a user