feat: add created_at and updated_at timestamps to Workflow model

Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
-LAN- 2025-03-05 15:09:03 +08:00
parent 38ed97e396
commit 94c07bfc46
No known key found for this signature in database
GPG Key ID: 6BA0D108DED011FF

View File

@ -159,6 +159,8 @@ class Workflow(Base):
workflow.conversation_variables = conversation_variables or [] workflow.conversation_variables = conversation_variables or []
workflow.marked_name = marked_name workflow.marked_name = marked_name
workflow.marked_comment = marked_comment workflow.marked_comment = marked_comment
workflow.created_at = datetime.now(UTC).replace(tzinfo=None)
workflow.updated_at = workflow.created_at
return workflow return workflow
@property @property