-- 回滚工作流执行记录表创建
-- 删除工作流执行记录相关的所有数据库对象

-- 删除触发器
DROP TRIGGER IF EXISTS update_workflow_execution_records_updated_at;

-- 删除索引
DROP INDEX IF EXISTS idx_workflow_execution_records_session_id;
DROP INDEX IF EXISTS idx_workflow_execution_records_user_id;
DROP INDEX IF EXISTS idx_workflow_execution_records_created_at;
DROP INDEX IF EXISTS idx_workflow_execution_records_comfyui_prompt_id;
DROP INDEX IF EXISTS idx_workflow_execution_records_status;
DROP INDEX IF EXISTS idx_workflow_execution_records_template_id;

-- 删除表
DROP TABLE IF EXISTS workflow_execution_records;
