{
"event": "PreToolUse",
"tool_name": "mcp__mcp-db__db_execute",
"tool_input": {
"statement": "ALTER TABLE content_orders \n ADD CONSTRAINT fk_orders_profile FOREIGN KEY (author_profile_id) REFERENCES content_config(id) ON DELETE SET NULL,\n ADD CONSTRAINT fk_orders_contract FOREIGN KEY (contract_id) REFERENCES content_config(id) ON DELETE SET NULL,\n ADD CONSTRAINT fk_orders_structure FOREIGN KEY (structure_id) REFERENCES content_config(id) ON DELETE SET NULL",
"database": "ki_content"
}
}
{
"tool_response": [
{
"type": "text",
"text": "{\n \"status\": \"success\",\n \"affected_rows\": 7,\n \"error\": null,\n \"execution_ms\": 4\n}"
}
]
}