maplestory/backend/models/boss-crystal/BossDifficulty.js
caadiq b885f464c3 보스 결정 관리 개선
- 최대 인원수를 보스 단위로 통합 (난이도별 → 보스 공통)
- 가격 입력 시 쉼표 자동 표시 (text + inputMode=numeric)
- registry 캐싱으로 sub-route 변경 시 화면 갱신 안되던 버그 수정

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 16:01:04 +09:00

19 lines
647 B
JavaScript

import { DataTypes } from 'sequelize';
import { sequelize } from '../../lib/db.js';
export const BossCrystalBossDifficulty = sequelize.define('BossCrystalBossDifficulty', {
id: { type: DataTypes.INTEGER, autoIncrement: true, primaryKey: true },
boss_id: { type: DataTypes.INTEGER, allowNull: false },
difficulty: {
type: DataTypes.ENUM('easy', 'normal', 'hard', 'chaos', 'extreme'),
allowNull: false,
},
crystal_price: { type: DataTypes.BIGINT, allowNull: false },
}, {
tableName: 'bc_boss_difficulties',
underscored: true,
timestamps: false,
indexes: [
{ unique: true, fields: ['boss_id', 'difficulty'] },
],
});