Hello,
here is my table from model folder. Its working on my paster serve setup. Yes the DB is created, The __init__.py has also been updated to add the models below.
thanks in advance for any help.
# -*- coding: utf-8 -*-
"""Sample model module."""
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 sorter.model import DeclarativeBase, metadata, DBSession
class SortedFiles(DeclarativeBase):
"""Table for Sorted Files"""
__tablename__ = "BNTSortedFiles"
record_id = Column(Integer, primary_key=True)
fileName = Column(String,nullable=True,unique=True)
docTitle = Column(String,nullable=True)
docTag = Column(String,nullable=True)
docType = Column(String,nullable=True)
recDate = Column(String,nullable=True)
group = Column(String,nullable=True)
jobName = Column(String,nullable=True)
stateCounty = Column(String,nullable=True)
ftpPath = Column(String,nullable=True)
move = Column(Boolean,nullable=False,default='False')
dispatch = Column(Boolean,nullable=False,default='False')
done= Column(Boolean,nullable=False,default='False')
class StateCountyRecDate(DeclarativeBase):
"""Table for State County Recording Date"""
__tablename__ = "StateCountyRecDate"
record_id = Column(Integer, primary_key=True)
recDate = Column(String,nullable=True)
stateCounty = Column(String,nullable=True)
dtaImgStatus = Column(Boolean,nullable=False,default='False')