심볼 레벨 메소 BIGINT 확장

그랜드 어센틱심볼 상위 레벨 메소가 INT(2.1B) 범위를 초과하므로
SymbolLevel.meso_cost를 BIGINT로 변경.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
caadiq 2026-04-15 13:59:44 +09:00
parent eb4369d8fb
commit 34a8158074
2 changed files with 19 additions and 14 deletions

View file

@ -6,7 +6,7 @@ export const SymbolLevel = sequelize.define('SymbolLevel', {
symbol_id: { type: DataTypes.INTEGER, allowNull: false }, symbol_id: { type: DataTypes.INTEGER, allowNull: false },
level: { type: DataTypes.TINYINT, allowNull: false }, level: { type: DataTypes.TINYINT, allowNull: false },
required_count: { type: DataTypes.SMALLINT, allowNull: false }, required_count: { type: DataTypes.SMALLINT, allowNull: false },
meso_cost: { type: DataTypes.INTEGER, allowNull: false }, meso_cost: { type: DataTypes.BIGINT, allowNull: false },
}, { }, {
tableName: 'sym_levels', tableName: 'sym_levels',
underscored: true, underscored: true,

View file

@ -123,7 +123,10 @@ function SymbolCard({ symbol, equipped }) {
</div> </div>
{/* 획득량 입력 */} {/* 획득량 입력 */}
<div className="grid gap-2 mb-4" style={{ gridTemplateColumns: '0.7fr 1.3fr 1fr' }}> <div
className="grid gap-2 mb-4"
style={{ gridTemplateColumns: symbol.weekly_default > 0 ? '0.7fr 1.3fr 1fr' : '1fr 1fr' }}
>
<div className="space-y-1"> <div className="space-y-1">
<label className="block text-xs text-gray-400">일퀘 획득</label> <label className="block text-xs text-gray-400">일퀘 획득</label>
<input <input
@ -134,18 +137,20 @@ function SymbolCard({ symbol, equipped }) {
className="w-full h-10 rounded-md border border-white/10 bg-gray-950 px-3 text-base text-right tabular-nums outline-none focus:border-emerald-500/50 hover:border-white/20 disabled:opacity-50 transition" className="w-full h-10 rounded-md border border-white/10 bg-gray-950 px-3 text-base text-right tabular-nums outline-none focus:border-emerald-500/50 hover:border-white/20 disabled:opacity-50 transition"
/> />
</div> </div>
<div className="space-y-1"> {symbol.weekly_default > 0 && (
<label className="block text-xs text-gray-400">주간퀘 획득</label> <div className="space-y-1">
<Select <label className="block text-xs text-gray-400">주간퀘 획득</label>
value={weeklyCount} <Select
onChange={setWeeklyCount} value={weeklyCount}
options={[1, 2, 3].map((n) => ({ onChange={setWeeklyCount}
value: n, options={[1, 2, 3].map((n) => ({
label: `${n * (symbol.weekly_default || 0)}`, value: n,
}))} label: `${n * symbol.weekly_default}`,
disabled={!equipped} }))}
/> disabled={!equipped}
</div> />
</div>
)}
<div className="space-y-1"> <div className="space-y-1">
<label className="block text-xs text-gray-400">추가 심볼</label> <label className="block text-xs text-gray-400">추가 심볼</label>
<input <input