-- ============================================================================
-- Drop Legacy PC Tables
--
-- These tables are no longer used after PC migration to machines table.
-- All ASP code now uses machines table or vw_warranty_status view.
--
-- Run this AFTER verifying the application works correctly.
-- ============================================================================

-- Verify no dependencies before dropping
-- SELECT * FROM information_schema.KEY_COLUMN_USAGE
-- WHERE REFERENCED_TABLE_NAME IN ('pc', 'pc_backup_phase2');

-- Drop the legacy tables
DROP TABLE IF EXISTS pc_backup_phase2;
DROP TABLE IF EXISTS pc;

-- Verify tables are gone
SHOW TABLES LIKE 'pc%';

-- Expected remaining tables:
--   pc_to_machine_id_mapping  (still needed by views)
--   pctype                    (still needed for PC type lookups)
