cproudlock 3bce4852db Update QUICK_REFERENCE.md for Phase 2 schema
- Rewrite Core Tables section for unified machines table
- Update PC/Equipment/Network device identification queries
- Add communications table (replaces pc_network_interfaces)
- Update column names (address not ipaddress, machineid not pcid)
- Update Important Views section with current views
- Fix SQL query examples for new schema
- Update file structure and resource references
- Update database credentials

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 17:02:18 -05:00

ShopDB Documentation

Last Updated: 2025-12-11 Current Status: Database Migration Complete


Document Purpose
CLAUDE.md AI assistant context (start here)
QUICK_REFERENCE.md Cheat sheets, common queries
ASP_DEVELOPMENT_GUIDE.md Dev setup, VBScript patterns
STANDARDS.md Coding standards, security
API.md REST API documentation

Current Architecture

machines table (unified)
  ├── Equipment (machinetypeid 1-15, pctypeid IS NULL)
  ├── PCs (machinetypeid 33-35, pctypeid IS NOT NULL)
  └── Network Devices (machinetypeid 16-20)

printers table (separate)
communications table (all network interfaces)
machinerelationships table (PC↔equipment links)

Dev Environment

# Start dev environment
~/start-dev-env.sh

# Check status
~/status-dev-env.sh

# Access application
http://192.168.122.151:8080

# Connect to MySQL
docker exec -it dev-mysql mysql -u root -prootpassword shopdb

Database Views

All views are defined in sql/view_consolidation.sql:

View Purpose
vw_equipment_list Equipment with details
vw_pc_list PCs with OS/model info
vw_printer_list Active printers
vw_network_devices Network devices (APs, switches, etc.)
vw_machine_detail Full machine info for detail pages
vw_active_notifications Current notifications
vw_warranty_status Warranty tracking

Archive

Historical documentation from completed migrations is in archive/:

  • Phase 1-4 migration plans and summaries
  • Bug fix records
  • Session summaries

Maintained By: Development Team

Description
ShopDB - Manufacturing Floor Management System
Readme 347 MiB
Languages
Classic ASP 51.5%
JavaScript 35.9%
CSS 8.8%
HTML 1.9%
Python 1%
Other 0.9%