# Path: models.py
# def tn(tablename):
#     """ shortcut to get tablename with prefix """
#     return '%s%s' % (TABLEPREFIX, tablename)


from sqlalchemy import *
from sqlalchemy.ext.declarative import declarative_base
from migrate import *
from models import tn

Base = declarative_base()
meta = Base.metadata

class Status(Base):
    __tablename__ = tn('status')

    id = Column(Integer, primary_key=True)
    value = Column(String(32), unique=True)

class Format(Base):

# Path: models.py
# def tn(tablename):
#     """ shortcut to get tablename with prefix """
#     return '%s%s' % (TABLEPREFIX, tablename)


# Path: migrations/versions/005_Add_Page_model.py
from sqlalchemy import *
from sqlalchemy.ext.declarative import declarative_base
from migrate import *
from models import tn


Base = declarative_base()
meta = Base.metadata

class Status(Base):
    __tablename__ = tn('status')

    id = Column(Integer, primary_key=True)
    value = Column(String(32), unique=True)

class Format(Base):

    __tablename__ = tn('formats')