- React + Vite + Tailwind 프론트엔드 - Express + Sequelize + MariaDB 백엔드 - 넥슨 OAuth 2.0 인증 (캐릭터 목록 조회) - 주간 보스 결정석 수익 계산기 UI (리스트형) - Docker Compose + Caddy 리버스 프록시 설정 - 보스/난이도 이미지 에셋 포함 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 lines
686 B
JavaScript
17 lines
686 B
JavaScript
import { DataTypes } from 'sequelize';
|
|
import { sequelize } from '../../lib/db.js';
|
|
|
|
export const UserBossSelection = sequelize.define('UserBossSelection', {
|
|
id: { type: DataTypes.INTEGER, autoIncrement: true, primaryKey: true },
|
|
user_id: { type: DataTypes.INTEGER, allowNull: false },
|
|
user_character_id: { type: DataTypes.INTEGER, allowNull: false },
|
|
boss_difficulty_id: { type: DataTypes.INTEGER, allowNull: false },
|
|
party_size: { type: DataTypes.TINYINT, allowNull: false, defaultValue: 1 },
|
|
}, {
|
|
tableName: 'user_boss_selections',
|
|
underscored: true,
|
|
timestamps: false,
|
|
indexes: [
|
|
{ unique: true, fields: ['user_character_id', 'boss_difficulty_id'] },
|
|
],
|
|
});
|