|
@@ -626,6 +626,7 @@ class Message(db.Model):
|
|
db.Index('message_conversation_id_idx', 'conversation_id'),
|
|
db.Index('message_conversation_id_idx', 'conversation_id'),
|
|
db.Index('message_end_user_idx', 'app_id', 'from_source', 'from_end_user_id'),
|
|
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_account_idx', 'app_id', 'from_source', 'from_account_id'),
|
|
|
|
+ db.Index('message_workflow_run_id_idx', 'conversation_id', 'workflow_run_id')
|
|
)
|
|
)
|
|
|
|
|
|
id = db.Column(StringUUID, server_default=db.text('uuid_generate_v4()'))
|
|
id = db.Column(StringUUID, server_default=db.text('uuid_generate_v4()'))
|