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:
cproudlock
2025-12-11 17:14:56 -05:00
parent d1a93979f2
commit eda9cd2208
2 changed files with 27 additions and 3 deletions

View File

@@ -150,6 +150,19 @@ PCs are in the machines table, identified by:
|------|---------|
| `printerlookup.asp?ip=x.x.x.x` | Zabbix printer lookup by IP/FQDN |
### Zabbix API
- **URL:** `http://10.48.130.113:8080/api_jsonrpc.php`
- **Token:** `9e60b0544ec77131d94825eaa2f3f1645335539361fd33644aeb8326697aa48d`
- **Config File:** `includes/zabbix.asp`
- **Used For:** Printer supply levels, host monitoring
### Gitea (Version Control)
- **URL:** `http://localhost:3000`
- **API Token:** *(add token here if needed)*
- **Repo:** `cproudlock/shopdb`
## Quick Reference
### Start Dev Environment

View File

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