feat : update
This commit is contained in:
+20
-1
@@ -487,6 +487,25 @@ export const catalogArtifacts = catalogSchema.table(
|
||||
],
|
||||
);
|
||||
|
||||
export const glossaryAliases = guidesSchema.table(
|
||||
"glossary_alias",
|
||||
{
|
||||
id: uuid("id").defaultRandom().primaryKey(),
|
||||
kind: varchar("kind", { length: 16 }).notNull(),
|
||||
catalogKey: varchar("catalog_key", { length: 64 }).notNull(),
|
||||
alias: varchar("alias", { length: 120 }).notNull(),
|
||||
normalizedAlias: varchar("normalized_alias", { length: 120 }).notNull(),
|
||||
...timestamps,
|
||||
},
|
||||
(table) => [
|
||||
uniqueIndex("glossary_alias_kind_normalized_unique").on(
|
||||
table.kind,
|
||||
table.normalizedAlias,
|
||||
),
|
||||
index("glossary_alias_item_idx").on(table.kind, table.catalogKey),
|
||||
],
|
||||
);
|
||||
|
||||
export const guides = guidesSchema.table(
|
||||
"guide",
|
||||
{
|
||||
@@ -547,7 +566,7 @@ export const weaponRecommendations = guidesSchema.table(
|
||||
id: uuid("id").defaultRandom().primaryKey(),
|
||||
conditionId: uuid("condition_id").notNull().references(() => weaponConditions.id, { onDelete: "cascade" }),
|
||||
weaponKey: varchar("weapon_key", { length: 64 }).notNull(),
|
||||
refinement: integer("refinement").notNull(),
|
||||
refinement: varchar("refinement", { length: 8 }).notNull(),
|
||||
overallPercent: numeric("overall_percent", { precision: 8, scale: 2 }),
|
||||
personalPercent: numeric("personal_percent", { precision: 8, scale: 2 }),
|
||||
note: text("note"),
|
||||
|
||||
Reference in New Issue
Block a user