mirror of
https://github.com/langgenius/dify.git
synced 2026-05-07 02:46:32 +08:00
fix mode
This commit is contained in:
parent
3de8151a7a
commit
20524a5503
@ -154,6 +154,10 @@ class WorkflowCommentReply(Base):
|
||||
|
||||
id: Mapped[str] = mapped_column(
|
||||
StringUUID, server_default=sa.text("uuidv7()"))
|
||||
comment_id: Mapped[str] = mapped_column(
|
||||
StringUUID, sa.ForeignKey("workflow_comments.id", ondelete="CASCADE"), nullable=False
|
||||
)
|
||||
content: Mapped[str] = mapped_column(sa.Text, nullable=False)
|
||||
created_by: Mapped[str] = mapped_column(StringUUID, nullable=False)
|
||||
created_at: Mapped[datetime] = mapped_column(
|
||||
sa.DateTime, nullable=False, server_default=func.current_timestamp())
|
||||
@ -201,6 +205,9 @@ class WorkflowCommentMention(Base):
|
||||
comment_id: Mapped[str] = mapped_column(
|
||||
StringUUID, sa.ForeignKey("workflow_comments.id", ondelete="CASCADE"), nullable=False
|
||||
)
|
||||
reply_id: Mapped[str | None] = mapped_column(
|
||||
StringUUID, sa.ForeignKey("workflow_comment_replies.id", ondelete="CASCADE"), nullable=True
|
||||
)
|
||||
mentioned_user_id: Mapped[str] = mapped_column(StringUUID, nullable=False)
|
||||
# Relationships
|
||||
comment: Mapped["WorkflowComment"] = relationship(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user