feat: show level 90 base stats
CI / verify (push) Successful in 40s
CI / build-and-deploy (push) Successful in 1m13s

This commit is contained in:
2026-09-09 20:25:20 +07:00 Unverified
parent c21996fcf0
commit 3314b2a9c6
7 changed files with 118 additions and 18 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
import { integer, pgSchema, text, varchar } from "drizzle-orm/pg-core";
import { integer, jsonb, pgSchema, text, varchar } from "drizzle-orm/pg-core";
import type { CatalogBaseStat } from "@/lib/translator/types";
export const catalogSchema = pgSchema("catalog");
export const catalogCharacters = catalogSchema.table("character", {
key: varchar("key", { length: 64 }).primaryKey(), name: text("name").notNull(), element: varchar("element", { length: 48 }), rarity: integer("rarity"), weaponType: varchar("weapon_type", { length: 64 }), imageKey: text("image_key").notNull(),
key: varchar("key", { length: 64 }).primaryKey(), name: text("name").notNull(), element: varchar("element", { length: 48 }), rarity: integer("rarity"), weaponType: varchar("weapon_type", { length: 64 }), imageKey: text("image_key").notNull(), baseStats: jsonb("base_stats").$type<CatalogBaseStat[]>().default([]).notNull(),
});
export const catalogWeapons = catalogSchema.table("weapon", {
key: varchar("key", { length: 64 }).primaryKey(), name: text("name").notNull(), rarity: integer("rarity"), weaponType: varchar("weapon_type", { length: 64 }), imageKey: text("image_key").notNull(),