X-Git-Url: http://git.veekun.com/zzz-spline-gts.git/blobdiff_plain/b857c1e49fbc463e8c25c85fc0ec443d7c7d653f..04080d76b1d682b28f89e5d9403759a3782fb8f3:/splinext/gts/model/__init__.py?ds=sidebyside diff --git a/splinext/gts/model/__init__.py b/splinext/gts/model/__init__.py new file mode 100644 index 0000000..3d73b54 --- /dev/null +++ b/splinext/gts/model/__init__.py @@ -0,0 +1,11 @@ +from sqlalchemy import Column, ForeignKey +from sqlalchemy.orm import relation +from sqlalchemy.types import Binary, Integer, Unicode + +from spline.model.meta import TableBase + +class GTSPokemon(TableBase): + __tablename__ = 'gts_pokemon' + id = Column(Integer, primary_key=True, autoincrement=True) + pid = Column(Integer) + pokemon_blob = Column(Binary(292), nullable=False)