{
"event": "PreToolUse",
"tool_name": "mcp__mcp-db__db_execute",
"tool_input": {
"statement": "CREATE TABLE rag_collections (\n id INT AUTO_INCREMENT PRIMARY KEY,\n collection_id VARCHAR(100) NOT NULL UNIQUE,\n display_name VARCHAR(100) NOT NULL,\n description TEXT,\n \n -- Qdrant-Metadaten (via Sync)\n vector_size INT,\n distance_metric VARCHAR(20),\n points_count INT DEFAULT 0,\n \n -- Konfiguration\n embedding_model VARCHAR(100),\n chunk_size INT,\n chunk_overlap INT,\n \n -- Verwaltung\n source_type ENUM('nextcloud', 'mail', 'manual', 'system') DEFAULT 'manual',\n source_path VARCHAR(500),\n is_active BOOLEAN DEFAULT TRUE,\n is_searchable BOOLEAN DEFAULT TRUE,\n sort_order INT DEFAULT 0,\n \n -- Timestamps\n last_synced_at DATETIME,\n created_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4",
"database": "ki_dev"
}
}
{
"tool_response": [
{
"type": "text",
"text": "{\n \"status\": \"success\",\n \"affected_rows\": 0,\n \"error\": null,\n \"execution_ms\": 2\n}"
}
]
}