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

const TournamentResult = sequelize.define('TournamentResult', {
    matchId: {
        type: DataTypes.INTEGER,
        allowNull: false,
    },
    set: {
        type: DataTypes.INTEGER,
    },
    pointsPlayer1: {
        type: DataTypes.INTEGER,
    },
    pointsPlayer2: {
        type: DataTypes.INTEGER,
    },
  }, {
  underscored: true,
  tableName: 'tournament_result',
  timestamps: true,
});

export default TournamentResult;
