Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from app.models.base import db
- class Deals(db.Model):
- __tablename__ = 'deals'
- id = db.Column(db.INTEGER, primary_key=True)
- title = db.Column(db.String(200), nullable=False)
- description = db.Column(db.String(1000), nullable=False)
- def __init__(self, title, description):
- self.title = title
- self.description = description
- pass
Add Comment
Please, Sign In to add comment