{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "mariadb -u root -p\"$(grep 'MariaDB.*root' \/var\/www\/docs\/credentials\/credentials.md | cut -d'|' -f4 | tr -d ' ')\" ki_content -e \"\nCREATE TABLE IF NOT EXISTS prompts (\n id INT AUTO_INCREMENT PRIMARY KEY,\n name VARCHAR(100) NOT NULL,\n version VARCHAR(20) NOT NULL DEFAULT '1.0',\n content TEXT NOT NULL,\n is_active TINYINT(1) DEFAULT 1,\n created_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n UNIQUE KEY unique_name_version (name, version)\n);\nSELECT 'Table prompts created' as status;\n\"",
"description": "Create prompts table"
}
}
{
"tool_response": {
"stdout": "status\nTable prompts created",
"stderr": "",
"interrupted": false,
"isImage": false
}
}