-
-
Save abhisuri97/ca8a43a9197827b38f7119d17678e2bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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