feat(ClubTeam): enhance club team management with lineup features and member eligibility

- Added teamGender and teamAgeGroup fields to ClubTeam model for better categorization.
- Updated create and update club team endpoints to handle new fields and default values.
- Implemented getClubTeamLineup and updateClubTeamLineup functions for managing team lineups.
- Enhanced member management with adultReleaseApproved and adultReserveApproved fields in Member model.
- Updated frontend views to support new lineup features and member eligibility flags.
- Improved localization for new terms related to team management and member eligibility across multiple languages.
This commit is contained in:
Torsten Schulz (local)
2026-03-31 13:44:28 +02:00
parent cb7830571b
commit 5eff1d63aa
28 changed files with 1325 additions and 72 deletions

View File

@@ -6,7 +6,9 @@ import {
createClubTeam,
updateClubTeam,
deleteClubTeam,
getLeagues
getLeagues,
getClubTeamLineup,
updateClubTeamLineup
} from '../controllers/clubTeamController.js';
const router = express.Router();
@@ -23,6 +25,10 @@ router.get('/leagues/:clubid', authenticate, getLeagues);
// Get a specific club team
router.get('/:clubteamid', authenticate, getClubTeam);
// Get/save lineup for a specific club team
router.get('/:clubteamid/lineup', authenticate, getClubTeamLineup);
router.put('/:clubteamid/lineup', authenticate, updateClubTeamLineup);
// Update a club team
router.put('/:clubteamid', authenticate, updateClubTeam);