feat(Tournament): add doubles tournament support and related UI enhancements

- Updated tournamentController.js and tournamentService.js to include isDoublesTournament parameter for tournament creation and updates.
- Modified Tournament model to add isDoublesTournament field, allowing differentiation between singles and doubles tournaments.
- Enhanced frontend components (TournamentConfigTab, TournamentParticipantsTab, TournamentTab) to support doubles tournament configuration and display.
- Added internationalization keys for doubles tournament labels and hints in multiple languages.
- Improved participant assignment logic for doubles tournaments to ensure proper class assignments.
This commit is contained in:
Torsten Schulz (local)
2026-03-25 11:49:47 +01:00
parent 64090d9ff0
commit c2a31d3b24
12 changed files with 686 additions and 214 deletions

View File

@@ -51,6 +51,13 @@ const Tournament = sequelize.define('Tournament', {
defaultValue: null,
comment: 'Anzahl der Tische, auf denen gespielt wird'
},
isDoublesTournament: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: false,
field: 'is_doubles_tournament',
comment: 'Turnierweite Markierung fuer Doppel-Turniere'
},
}, {
underscored: true,
tableName: 'tournament',