finished tournaments

This commit is contained in:
Torsten Schulz
2025-07-16 14:29:34 +02:00
parent d0544da1ba
commit 4122868ab0
6 changed files with 963 additions and 137 deletions

View File

@@ -14,14 +14,14 @@ const Tournament = sequelize.define('Tournament', {
type: DataTypes.STRING,
allowNull: false,
},
bestOfEndroundSize: {
advancingPerGroup: {
type: DataTypes.INTEGER,
allowNull: false,
},
numberOfGroups: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: 0,
defaultValue: 0,
},
clubId: {
type: DataTypes.INTEGER,

View File

@@ -25,6 +25,10 @@ const TournamentMatch = sequelize.define('TournamentMatch', {
onDelete: 'SET NULL',
onUpdate: 'CASCADE'
},
groupRound: {
type: DataTypes.INTEGER,
allowNull: true,
},
round: {
type: DataTypes.STRING,
allowNull: false,