add club memberships to player

This commit is contained in:
Laurent Le Houerou 2024-04-05 21:47:05 +04:00
parent f3f6899de0
commit 60a51063be

View File

@ -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"`