pokedex-go/pokemon/pokemon.go

16 lines
233 B
Go

package pokemon
type Move struct {
Name string
Url string
PokemonID uint // implicit; see https://gorm.io/docs/has_many.html
}
type Pokemon struct {
Id int
Name string
Height int
Weight int
Moves []Move
}