import { DataTypes } from 'sequelize';
import sequelize from '../database.js';

const TournamentGroup = sequelize.define('TournamentGroup', {
    id: {
        type: DataTypes.INTEGER,
        primaryKey: true,
        autoIncrement: true,
        allowNull: false
    },
    stageId: {
        type: DataTypes.INTEGER,
        allowNull: true,
    },
    tournamentId : {
        type: DataTypes.INTEGER,
        allowNull: false
    },
    classId: {
        type: DataTypes.INTEGER,
        allowNull: true
    },
  }, {
  underscored: true,
  tableName: 'tournament_group',
  timestamps: true,
});

export default TournamentGroup;
