added team view to season_leagues
This commit is contained in:
@@ -17,6 +17,7 @@ type Team struct {
|
||||
|
||||
Seasons []Season `bun:"m2m:team_participations,join:Team=Season" json:"-"`
|
||||
Leagues []League `bun:"m2m:team_participations,join:Team=League" json:"-"`
|
||||
Players []Player `bun:"m2m:team_rosters,join:Team=Player" json:"-"`
|
||||
}
|
||||
|
||||
func NewTeam(ctx context.Context, tx bun.Tx, name, shortName, altShortName, color string, audit *AuditMeta) (*Team, error) {
|
||||
|
||||
Reference in New Issue
Block a user