Feature: Support both Free-Text and Multiple-Choice question types
This commit is contained in:
@@ -10,6 +10,8 @@ class Question(Base):
|
||||
question = Column(Text, nullable=False)
|
||||
canonical_answer = Column(String(255), nullable=False)
|
||||
accepted_answers = Column(Text, nullable=True) # JSON or comma-delimited
|
||||
question_type = Column(String(20), default="text") # 'text' or 'multiple_choice'
|
||||
options = Column(Text, nullable=True) # JSON list of options for multiple choice
|
||||
hint = Column(Text, nullable=True)
|
||||
status = Column(String(30), default="active", index=True) # active, needs_review, rejected, archived
|
||||
submitted_by = Column(String(100), nullable=True)
|
||||
|
||||
Reference in New Issue
Block a user