2026-04-15 13:06:30 +09:00
|
|
|
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 },
|
2026-04-15 13:59:44 +09:00
|
|
|
meso_cost: { type: DataTypes.BIGINT, allowNull: false },
|
2026-04-15 13:06:30 +09:00
|
|
|
}, {
|
|
|
|
|
tableName: 'sym_levels',
|
|
|
|
|
underscored: true,
|
|
|
|
|
indexes: [
|
|
|
|
|
{ unique: true, fields: ['symbol_id', 'level'] },
|
|
|
|
|
],
|
|
|
|
|
});
|