From 134670a026a7eb3594173d9f968f92c96f4c0d09 Mon Sep 17 00:00:00 2001 From: cproudlock Date: Fri, 12 Dec 2025 09:34:03 -0500 Subject: [PATCH] Update CLAUDE.md to reflect machineid schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ednclogs uses machineid FK instead of hostname - installedapps tracks installations (no separate edncstats table) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index d829430..b09a9d6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -83,8 +83,8 @@ The script logs events to ShopDB via the API. Reference the ShopDB API documenta | fileFilter | string | No | File filter pattern | **Database Tables:** -- `ednc_logs` - Individual event log entries -- `ednc_installations` - Per-hostname installation tracking +- `ednclogs` - Event log entries (uses machineid FK to machines table) +- `installedapps` - Tracks installations (appid=79 for eDNC) ### API Endpoint: getDNCStats @@ -129,6 +129,7 @@ curl "http://192.168.122.151:8080/api.asp?action=getDNCStats" ### View logs in database: ```sql -SELECT * FROM ednc_logs ORDER BY created DESC LIMIT 20; -SELECT * FROM ednc_installations; +SELECT l.*, m.hostname FROM ednclogs l +JOIN machines m ON l.machineid = m.machineid +ORDER BY l.created DESC LIMIT 20; ```