2024-05-23 04:18:54 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
type Team struct {
|
|
|
|
Slug string `bun:"slug,pk" json:"slug"`
|
|
|
|
DisplayName string `bun:"display_name" json:"displayName"`
|
|
|
|
CountrySlug string `bun:"country_slug" json:"countrySlug"`
|
|
|
|
DomesticLeagueSlug *string `bun:"domestic_league_slug" json:"domesticLeagueSlug"`
|
|
|
|
ShortName string `bun:"short_name" json:"shortName"`
|
|
|
|
PictureUrl string `bun:"picture_url" json:"pictureUrl"`
|
|
|
|
TeamType string `bun:"team_type" json:"teamType"`
|
|
|
|
|
|
|
|
Country *Country `bun:"rel:has-one,join:country_slug=slug" json:"country"`
|
|
|
|
DomesticLeague *Competition `bun:"rel:has-one,join:domestic_league_slug=slug" json:"domesticLeague"`
|
2024-06-06 05:52:54 +00:00
|
|
|
|
|
|
|
HomeGames []Game `bun:"rel:has-many,join:slug=home_team_slug" json:"homeGames"`
|
|
|
|
AwayGames []Game `bun:"rel:has-many,join:slug=away_team_slug" json:"awayGames"`
|
2024-05-23 04:18:54 +00:00
|
|
|
}
|