add club memberships to player
This commit is contained in:
parent
f3f6899de0
commit
60a51063be
@ -40,6 +40,15 @@ type CardSeasonSupply struct {
|
||||
Unique int `graphql:"unique"`
|
||||
}
|
||||
|
||||
type ClubMembership struct {
|
||||
Id graphql.Id `graphql:"id"`
|
||||
Club struct {
|
||||
Slug string `graphql:"slug"`
|
||||
} `graphql:"club"`
|
||||
StartDate time.Time `graphql:"startDate"`
|
||||
EndDate *time.Time `graphql:"endDate"`
|
||||
}
|
||||
|
||||
type Player struct {
|
||||
ActiveClub struct {
|
||||
Slug string `graphql:"slug"`
|
||||
@ -59,6 +68,7 @@ type Player struct {
|
||||
BirthDate time.Time `graphql:"birthDate"`
|
||||
CardPositions []types.Position `graphql:"cardPositions"`
|
||||
CardSupply []CardSeasonSupply `graphql:"cardSupply"`
|
||||
ClubMemberships []ClubMembership `graphql:"clubMemberships"`
|
||||
Id graphql.Id `graphql:"id"`
|
||||
Slug string `graphql:"slug"`
|
||||
DisplayName string `graphql:"displayName"`
|
||||
|
Loading…
Reference in New Issue
Block a user