Add Teams endpoint and endpoints with service

This commit is contained in:
2026-03-09 15:48:47 +01:00
parent 67d4288c84
commit ea45d74c0f
7 changed files with 383 additions and 44 deletions

View File

@@ -0,0 +1,15 @@
export interface Team {
id: number;
name: string;
tag: string;
description: string;
createdAt: string;
}
export interface TournamentTeam {
id: number;
tournamentId: number;
teamId: number;
registeredAt: string;
}

View File

@@ -1,9 +1,12 @@
import { Team } from './team';
export interface Tournament {
id:number;
name:String;
description:String;
maxTeamAmount:number;
currentTeamAmount:number;
registrationStartDate:String;
registrationEndDate:String;
id: number;
name: String;
description: String;
maxTeamAmount: number;
currentTeamAmount: number;
registrationStartDate: String;
registrationEndDate: String;
teams?: Team[];
}