Skip to content

Instantly share code, notes, and snippets.

@jeetu7
Created July 12, 2012 17:51
Show Gist options
  • Save jeetu7/3099637 to your computer and use it in GitHub Desktop.
Save jeetu7/3099637 to your computer and use it in GitHub Desktop.
model file
class Material(DeclarativeBase):
__tablename__ = 'materials'
id = Column(Integer, primary_key=True)
Name = Column(Unicode(50), nullable=False)
voltage = Column(Float(10), nullable=True)
vol_1 = Column(Float(10), nullable=True)
vol_1_ref = Column(Unicode(10), nullable=True)
vol_2 = Column(Unicode(10), nullable=True)
vol_2_ref = Column(Unicode(10), nullable=True)
lookup_vol = Column(Enum('vol_1', 'vol_2', 'Avg_vol', 'min_vol', 'max_vol'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment