Add Teams endpoint and endpoints with service
This commit is contained in:
15
backend_splatournament_manager/src/models/team.ts
Normal file
15
backend_splatournament_manager/src/models/team.ts
Normal 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;
|
||||
}
|
||||
|
||||
@@ -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[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user