coolbud012

model.py

Jul 2nd, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. from app.models.base import db
  2.  
  3.  
  4. class Deals(db.Model):
  5.     __tablename__ = 'deals'
  6.     id = db.Column(db.INTEGER, primary_key=True)
  7.     title = db.Column(db.String(200), nullable=False)
  8.     description = db.Column(db.String(1000), nullable=False)
  9.  
  10.     def __init__(self, title, description):
  11.         self.title = title
  12.         self.description = description
  13.  
  14.     pass
Add Comment
Please, Sign In to add comment