Skip to content

Instantly share code, notes, and snippets.

@abhisuri97
Created November 27, 2017 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhisuri97/ca8a43a9197827b38f7119d17678e2bb to your computer and use it in GitHub Desktop.
Save abhisuri97/ca8a43a9197827b38f7119d17678e2bb to your computer and use it in GitHub Desktop.
from .. import db
class Question(db.Model):
__tablename__ = 'questions'
id = db.Column(db.Integer, primary_key=True)
content = db.Column(db.String(1000))
max_rating = db.Column(db.Integer)
free_response = db.Column(db.Boolean, default=False)
answers = db.relationship("Answer", backref="question")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment