diff --git a/api/models/model.py b/api/models/model.py index a65f72ccf6..7ed3b935fe 100644 --- a/api/models/model.py +++ b/api/models/model.py @@ -22,7 +22,7 @@ from core.workflow.enums import WorkflowExecutionStatus from libs.helper import generate_string # type: ignore[import-not-found] from .account import Account, Tenant -from .base import Base +from .base import Base, TypeBase from .engine import db from .enums import CreatorUserRole from .provider_ids import GenericProviderID @@ -1771,7 +1771,7 @@ class MessageChain(Base): created_at = mapped_column(sa.DateTime, nullable=False, server_default=sa.func.current_timestamp()) -class MessageAgentThought(Base): +class MessageAgentThought(TypeBase): __tablename__ = "message_agent_thoughts" __table_args__ = ( sa.PrimaryKeyConstraint("id", name="message_agent_thought_pkey"),