1 from sqlalchemy
import *
4 from sqlalchemy
.ext
.declarative
import declarative_base
5 TableBase
= declarative_base(bind
=migrate_engine
)
8 class GTSPokemon(TableBase
):
9 __tablename__
= 'gts_pokemon'
10 id = Column(Integer
, primary_key
=True, autoincrement
=True)
12 pokemon_blob
= Column(Binary(292), nullable
=False)
16 GTSPokemon
.__table__
.create()
19 GTSPokemon
.__table__
.drop()