그랜드 어센틱심볼 상위 레벨 메소가 INT(2.1B) 범위를 초과하므로 SymbolLevel.meso_cost를 BIGINT로 변경. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
16 lines
590 B
JavaScript
16 lines
590 B
JavaScript
import { DataTypes } from 'sequelize';
|
|
import { sequelize } from '../../lib/db.js';
|
|
|
|
export const SymbolLevel = sequelize.define('SymbolLevel', {
|
|
id: { type: DataTypes.INTEGER, autoIncrement: true, primaryKey: true },
|
|
symbol_id: { type: DataTypes.INTEGER, allowNull: false },
|
|
level: { type: DataTypes.TINYINT, allowNull: false },
|
|
required_count: { type: DataTypes.SMALLINT, allowNull: false },
|
|
meso_cost: { type: DataTypes.BIGINT, allowNull: false },
|
|
}, {
|
|
tableName: 'sym_levels',
|
|
underscored: true,
|
|
indexes: [
|
|
{ unique: true, fields: ['symbol_id', 'level'] },
|
|
],
|
|
});
|