Update CLAUDE.md to reflect machineid schema
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user