Source

moviedemo / moviedemo / model / model.template

Full commit
from sqlalchemy import *
from sqlalchemy.orm import mapper, relation
from sqlalchemy import Table, ForeignKey, Column
from sqlalchemy.types import Integer, Unicode
#from sqlalchemy.orm import relation, backref

from moviedemo.model import DeclarativeBase, metadata, DBSession

class SampleModel(DeclarativeBase):
    __tablename__ = 'sample_model'

    id = Column(Integer, primary_key=True)
    data = Column(Unicode(255), nullable=False)