File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -613,6 +613,27 @@ class Question(Base, IdMixin):
613613QuestionValidator : TypeAlias = sqlalchemy_to_pydantic (Question ) # type: ignore
614614
615615
616+ class CodeTailorParsons (Base , IdMixin ):
617+ __tablename__ = "codetailor_parsons"
618+ __table_args__ = (
619+ UniqueConstraint ("question_id" , "sid" , "timestamp" ),
620+ Index ("codetailor_parsons_qid_sid_idx" , "question_id" , "sid" ),
621+ )
622+ # Original Question this was generated from
623+ question_id = Column (
624+ Integer ,
625+ ForeignKey ("questions.id" ),
626+ nullable = False ,
627+ index = True ,
628+ )
629+ sid = Column (String (512 ), nullable = False , index = True )
630+ timestamp = Column (DateTime , nullable = False )
631+ htmlsrc = Column (Text )
632+ question_json = Column (JSON , nullable = False )
633+
634+ CodeTailorParsonsValidator : TypeAlias = sqlalchemy_to_pydantic (CodeTailorParsons ) # type: ignore
635+
636+
616637class Tag (Base , IdMixin ):
617638 __tablename__ = "tags"
618639
You can’t perform that action at this time.
0 commit comments