fix:优化试题内容和样式排版
This commit is contained in:
@@ -27,6 +27,9 @@ class Mistake(Base):
|
||||
image_url: Mapped[str | None] = mapped_column(String(1024), nullable=True)
|
||||
category: Mapped[str] = mapped_column(String(50), nullable=False)
|
||||
difficulty: Mapped[str | None] = mapped_column(String(20), nullable=True) # easy/medium/hard
|
||||
question_content: Mapped[str | None] = mapped_column(Text, nullable=True)
|
||||
answer: Mapped[str | None] = mapped_column(Text, nullable=True)
|
||||
explanation: Mapped[str | None] = mapped_column(Text, nullable=True)
|
||||
note: Mapped[str | None] = mapped_column(Text, nullable=True)
|
||||
wrong_count: Mapped[int] = mapped_column(Integer, default=1)
|
||||
created_at: Mapped[datetime] = mapped_column(DateTime, default=datetime.utcnow)
|
||||
|
||||
Reference in New Issue
Block a user