-- Migration 054 — Delta Networks and Siemens SCALANCE product images (direct URL injection)
--
-- Delta Networks: hardwarenation.com reseller CDN (model-specific JPEGs).
--   AG9064v2: static-data2.manualslib.com (only public clear photo found).
--
-- Siemens SCALANCE: images.sw.cdn.siemens.com (official Siemens DISW CDN).
--   og:image pattern: scalance-x-{series}-product-og-1200x630.jpg
--   X-200 → XC216-4C, X-300 → XR324-12M, X-500 → XM416-4C + XR528-6M.
--
-- All URLs verified HTTP 200 image/jpeg or image/png (2026-04-21).

-- ── Delta Networks ─────────────────────────────────────────────────────────────

-- AG5648 — 48×25G whitebox SONiC switch
UPDATE switches
SET image_url        = 'https://hardwarenation.com/wp-content/uploads/2021/06/AG5648V1-1.jpg',
    assets_scraped_at = NOW()
WHERE model = 'AG5648'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'delta-networks');

-- AG9032v2A — 32×100G open networking switch
UPDATE switches
SET image_url        = 'https://hardwarenation.com/wp-content/uploads/2021/06/AG9032V2.jpg',
    assets_scraped_at = NOW()
WHERE model = 'AG9032v2A'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'delta-networks');

-- AG9064v2 — 64×100G open networking switch
UPDATE switches
SET image_url        = 'https://static-data2.manualslib.com/product-images/320/1426327/delta-ag9064-switch.jpg',
    assets_scraped_at = NOW()
WHERE model = 'AG9064v2'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'delta-networks');

-- AGC7648A — 48×25G + 6×100G switch
UPDATE switches
SET image_url        = 'https://hardwarenation.com/wp-content/uploads/2021/06/AGC7648A-Front04.jpg',
    assets_scraped_at = NOW()
WHERE model = 'AGC7648A'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'delta-networks');

-- ── Siemens SCALANCE ───────────────────────────────────────────────────────────

-- SCALANCE XC216-4C — X-200 series compact industrial switch
UPDATE switches
SET image_url        = 'https://images.sw.cdn.siemens.com/siemens-disw-assets/public/1eXzT56kfEjsXjYV3SPjgV/en-US/scalance-x-200-product-og-1200x630.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.siemens.com/global/en/products/automation/industrial-communication/industrial-ethernet/scalance-x.html'),
    assets_scraped_at = NOW()
WHERE model = 'SCALANCE XC216-4C'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'siemens');

-- SCALANCE XM416-4C — X-500 series modular managed switch
UPDATE switches
SET image_url        = 'https://images.sw.cdn.siemens.com/siemens-disw-assets/public/25K1qjDD4NJhsMZDGrxt4P/en-US/scalance-x-500-product-og-1200x630.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.siemens.com/global/en/products/automation/industrial-communication/industrial-ethernet/scalance-x.html'),
    assets_scraped_at = NOW()
WHERE model = 'SCALANCE XM416-4C'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'siemens');

-- SCALANCE XR324-12M — X-300 series rackmount managed switch
UPDATE switches
SET image_url        = 'https://images.sw.cdn.siemens.com/siemens-disw-assets/public/7pf0XdeuiBDdwgEg3Iq8al/en-US/scalance-x-300-product-og-1200x630.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.siemens.com/global/en/products/automation/industrial-communication/industrial-ethernet/scalance-x.html'),
    assets_scraped_at = NOW()
WHERE model = 'SCALANCE XR324-12M'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'siemens');

-- SCALANCE XR528-6M — X-500 series high-port rackmount switch (same series image as XM416-4C)
UPDATE switches
SET image_url        = 'https://images.sw.cdn.siemens.com/siemens-disw-assets/public/25K1qjDD4NJhsMZDGrxt4P/en-US/scalance-x-500-product-og-1200x630.jpg',
    product_page_url = COALESCE(product_page_url, 'https://www.siemens.com/global/en/products/automation/industrial-communication/industrial-ethernet/scalance-x.html'),
    assets_scraped_at = NOW()
WHERE model = 'SCALANCE XR528-6M'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'siemens');
