From 4c74969d242ece9d59df3b05e7f652541e70eb19 Mon Sep 17 00:00:00 2001 From: Asuka Minato Date: Sun, 20 Jul 2025 14:46:18 +0900 Subject: [PATCH] Update api/models/model.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- api/models/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/models/model.py b/api/models/model.py index 953b878ddd..7f50630fa1 100644 --- a/api/models/model.py +++ b/api/models/model.py @@ -1326,7 +1326,7 @@ class MessageAnnotation(Base): app_id: Mapped[str] = mapped_column(StringUUID) conversation_id: Mapped[Optional[str]] = mapped_column(StringUUID, db.ForeignKey("conversations.id")) message_id: Mapped[Optional[str]] = mapped_column(StringUUID) - question: Mapped[str] + question: Mapped[Optional[str]] = mapped_column(db.Text, nullable=True) content: Mapped[str] hit_count = mapped_column(db.Integer, nullable=False, server_default=db.text("0")) account_id = mapped_column(StringUUID, nullable=False)