-- Migration 093: NCS 5500 main line card image backfill
-- Models: NC55-18H18F, NC55-24X100G-SE, NC55-32T16Q4H-A, NC55-36X100G-S,
--         NC55-MOD-A-S, NC55-MOD-A-SE-S
-- Sources: it-market.com, networkgenetics.net (BigCommerce), hummingbirdnetworks.com (BigCommerce),
--          dedicatednetworksinc.com (WordPress CDN), stack-systems.com (Magento CDN),
--          core92.com (Odoo e-commerce)
-- Coverage: +6 models (~644 → 650 estimated, ~96.0%)

-- NC55-18H18F: it-market.com product photo (7KB JPEG, verified)
UPDATE switches
SET image_url         = 'https://it-market.com/media/20/12/05/1702071778/3f1f6b1c85c4d6f807f6b2b3923721d2.jpg?ts=1738566420',
    product_page_url  = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5500-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC55-18H18F'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NC55-24X100G-SE: networkgenetics.net BigCommerce CDN (317KB PNG, product-specific front photo)
UPDATE switches
SET image_url         = 'https://cdn11.bigcommerce.com/s-e692hdujm7/images/stencil/1280x1280/products/9332/12803/Screen%5FShot%5F2024-05-16%5Fat%5F12.08.42%5FPM%5F%5F43256.1715879520.png?c=2',
    product_page_url  = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5500-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC55-24X100G-SE'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NC55-32T16Q4H-A: hummingbirdnetworks.com BigCommerce CDN (32KB JPEG, verified)
UPDATE switches
SET image_url         = 'https://cdn11.bigcommerce.com/s-b9xom8/images/stencil/1280x1280/products/190739/268396/1072204142__24982.1750972571.jpg?c=2',
    product_page_url  = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5500-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC55-32T16Q4H-A'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NC55-36X100G-S: dedicatednetworksinc.com WordPress CDN (1.2MB PNG, high-res line card front photo)
UPDATE switches
SET image_url         = 'https://dedicatednetworksinc.com/wp-content/uploads/2023/04/Cisco-NC55-36X100G-S-Line-Card-Front.png',
    product_page_url  = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5500-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC55-36X100G-S'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NC55-MOD-A-S: stack-systems.com Magento CDN (5.5KB JPEG, verified)
UPDATE switches
SET image_url         = 'https://stack-systems.com/media/catalog/product/cache/4ccf3122b2d4a5eb47d88ec1c5d09b3d/1/_/1_49_2.jpg',
    product_page_url  = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5500-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC55-MOD-A-S'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');

-- NC55-MOD-A-SE-S: core92.com Odoo e-commerce CDN (52KB JPEG, remanufactured unit photo)
UPDATE switches
SET image_url         = 'https://www.core92.com/web/image/product.product/84074/image_1024/%5BNC55-MOD-A-SE-S-Refresh%5D%20Cisco%20NC55-MOD-A-SE-S-Refresh?unique=0ba7933',
    product_page_url  = COALESCE(product_page_url, 'https://www.cisco.com/c/en/us/products/routers/network-convergence-system-5500-series/index.html'),
    assets_scraped_at = NOW()
WHERE model = 'NC55-MOD-A-SE-S'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'cisco');
