X-Git-Url: http://git.veekun.com/zzz-pokedex.git/blobdiff_plain/8cef4a568ff2e082ff96830596c392885b1dd513..56d77dd66179f484e0a7d3a6614a155c14f36e65:/pokedex/db/tables.py diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 84db548..7b749cc 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -578,6 +578,12 @@ class PokemonHabitat(TableBase): id = Column(Integer, primary_key=True, nullable=False, autoincrement=False) name = Column(Unicode(16), nullable=False) +class PokemonInternalID(TableBase): + __tablename__ = 'pokemon_internal_ids' + pokemon_id = Column(Integer, ForeignKey('pokemon.id'), primary_key=True, autoincrement=False, nullable=False) + generation_id = Column(Integer, ForeignKey('generations.id'), primary_key=True, autoincrement=False, nullable=False) + internal_id = Column(Integer, nullable=False) + class PokemonItem(TableBase): __tablename__ = 'pokemon_items' pokemon_id = Column(Integer, ForeignKey('pokemon.id'), primary_key=True, nullable=False, autoincrement=False)