Files
Volleyball/backend/internal/tournament/model.go

16 lines
420 B
Go

package tournament
type Team struct {
ID string `json:"id"`
Name string `json:"name"`
}
type Tournament struct {
ID string `json:"id"`
Name string `json:"name"`
Location string `json:"location"`
MaxParticipants int `json:"maxParticipants"`
Teams []Team `json:"teams"`
OrganizerId []string `json:"PlayerId"` // List of player IDs who are organizers
}