X-Git-Url: http://git.veekun.com/zzz-pokedex.git/blobdiff_plain/e2e45180d48996e7ca45214b397845d843bb7889..b05234befde3bcd0f2cd9b389edf2e0f54b26607:/pokedex/db/tables.py diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 1de7e7b..d2a0e77 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -377,6 +377,7 @@ EvolutionChain.growth_rate = relation(GrowthRate, backref='evolution_chains') LocationArea.location = relation(Location, backref='areas') Move.type = relation(Type, backref='moves') +Move.effect = relation(MoveEffect, backref='moves') Pokemon.abilities = relation(Ability, secondary=PokemonAbility.__table__, order_by=PokemonAbility.slot, @@ -433,3 +434,5 @@ Type.target_efficacies = relation(TypeEfficacy, Version.generation = relation(Generation, secondary=VersionGroup.__table__, backref='versions') Version.version_group = relation(VersionGroup, backref='versions') + +VersionGroup.generation = relation(Generation, backref='version_groups')