Added alembic and info if quiz was imported from KAHOOT!

This commit is contained in:
Mawoka
2022-06-10 18:45:13 +02:00
parent 046cc46c83
commit d4b66ca052
11 changed files with 313 additions and 2 deletions
+1
View File
@@ -74,6 +74,7 @@ class Quiz(ormar.Model):
updated_at: datetime = ormar.DateTime(default=datetime.now())
user_id: uuid.UUID = ormar.ForeignKey(User)
questions: Json[list[QuizQuestion]] = ormar.JSON(nullable=False)
imported_from_kahoot: Optional[bool] = ormar.Boolean(default=False, nullable=True)
class Meta:
tablename = "quiz"