Feat/clean message records (#10588)

This commit is contained in:
Jyong
2024-11-18 16:57:39 +08:00
committed by GitHub
parent c49efc0c22
commit 128efc3193
6 changed files with 127 additions and 8 deletions

View File

@@ -719,6 +719,7 @@ class Message(db.Model):
db.Index("message_end_user_idx", "app_id", "from_source", "from_end_user_id"),
db.Index("message_account_idx", "app_id", "from_source", "from_account_id"),
db.Index("message_workflow_run_id_idx", "conversation_id", "workflow_run_id"),
db.Index("message_created_at_idx", "created_at"),
)
id = db.Column(StringUUID, server_default=db.text("uuid_generate_v4()"))