feat: set default values for marked_name and marked_comment fields in Workflow model

Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
-LAN- 2025-03-03 14:42:18 +08:00
parent 9f37d142d8
commit fd4b3433f6
No known key found for this signature in database
GPG Key ID: 6BA0D108DED011FF

View File

@ -109,8 +109,8 @@ class Workflow(Base):
app_id: Mapped[str] = mapped_column(StringUUID, nullable=False)
type: Mapped[str] = mapped_column(db.String(255), nullable=False)
version: Mapped[str]
marked_name: Mapped[str]
marked_comment: Mapped[str]
marked_name: Mapped[str] = mapped_column(default="", server_default="")
marked_comment: Mapped[str] = mapped_column(default="", server_default="")
graph: Mapped[str] = mapped_column(sa.Text)
_features: Mapped[str] = mapped_column("features", sa.TEXT)
created_by: Mapped[str] = mapped_column(StringUUID, nullable=False)