mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Added Move.effect and VersionGroup.generation relations.
This commit is contained in:
parent
e8ed55c297
commit
ce23a82e50
1 changed files with 3 additions and 0 deletions
|
@ -377,6 +377,7 @@ EvolutionChain.growth_rate = relation(GrowthRate, backref='evolution_chains')
|
||||||
LocationArea.location = relation(Location, backref='areas')
|
LocationArea.location = relation(Location, backref='areas')
|
||||||
|
|
||||||
Move.type = relation(Type, backref='moves')
|
Move.type = relation(Type, backref='moves')
|
||||||
|
Move.effect = relation(MoveEffect, backref='moves')
|
||||||
|
|
||||||
Pokemon.abilities = relation(Ability, secondary=PokemonAbility.__table__,
|
Pokemon.abilities = relation(Ability, secondary=PokemonAbility.__table__,
|
||||||
order_by=PokemonAbility.slot,
|
order_by=PokemonAbility.slot,
|
||||||
|
@ -433,3 +434,5 @@ Type.target_efficacies = relation(TypeEfficacy,
|
||||||
Version.generation = relation(Generation, secondary=VersionGroup.__table__,
|
Version.generation = relation(Generation, secondary=VersionGroup.__table__,
|
||||||
backref='versions')
|
backref='versions')
|
||||||
Version.version_group = relation(VersionGroup, backref='versions')
|
Version.version_group = relation(VersionGroup, backref='versions')
|
||||||
|
|
||||||
|
VersionGroup.generation = relation(Generation, backref='version_groups')
|
||||||
|
|
Loading…
Reference in a new issue