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; ```