Update docs: fix counts, add reference tables, document Zabbix API
- Fix table count (29→35) and view count (23→26) in QUICK_REFERENCE.md - Fix pc_dnc_config → dncconfig in DualPath PCs SQL example - Add 8 additional reference/lookup tables to documentation - Document Zabbix API URL and token in CLAUDE.md - Add Gitea section placeholder 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
|
||||
| Item | Count | Notes |
|
||||
|------|-------|-------|
|
||||
| **Tables** | 29 | Base tables (actual data) |
|
||||
| **Views** | 23 | Computed/joined data |
|
||||
| **Tables** | 35 | Base tables (actual data) |
|
||||
| **Views** | 26 | Computed/joined data |
|
||||
| **PCs** | 242 | Active PCs in inventory |
|
||||
| **Machines** | 256 | CNC machines and locations |
|
||||
| **Printers** | 40 | Network printers |
|
||||
@@ -109,11 +109,22 @@ warranties (warrantyid, machineid, enddate, servicelevel, status, daysremaining)
|
||||
|
||||
### Reference Data
|
||||
```sql
|
||||
-- Core reference tables
|
||||
models (modelnumberid, modelnumber, vendorid)
|
||||
vendors (vendorid, vendor)
|
||||
operatingsystems (osid, osname)
|
||||
supportteams (supportteamid, supportteam)
|
||||
relationshiptypes (relationshiptypeid, relationshiptype)
|
||||
|
||||
-- Additional lookup tables
|
||||
machinestatus (machinestatusid, machinestatus) -- TBD, In Use, Returned, etc.
|
||||
notificationtypes (notificationtypeid, typename) -- Awareness, Change, Incident
|
||||
comstypes (comstypeid, typename) -- IP, Serial, Network_Interface
|
||||
subnettypes (subnettypeid, subnettypename) -- Subnet type classifications
|
||||
topics (topicid, topic) -- KB topic categories
|
||||
appowners (appownerid, appowner) -- Application ownership
|
||||
appversions (appversionid, applicationid, version) -- Application version tracking
|
||||
businessunits (businessunitid, businessunit) -- Business unit classifications
|
||||
```
|
||||
|
||||
---
|
||||
@@ -488,7 +499,7 @@ LIMIT 20;
|
||||
```sql
|
||||
SELECT m.hostname, dnc.dualpath_enabled, dnc.path1_name, dnc.path2_name
|
||||
FROM machines m
|
||||
JOIN pc_dnc_config dnc ON m.machineid = dnc.machineid
|
||||
JOIN dncconfig dnc ON m.machineid = dnc.machineid
|
||||
WHERE dnc.dualpath_enabled = 1 AND m.pctypeid IS NOT NULL;
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user