-- Migration 049 — NVIDIA Networking (Spectrum) switch product images
--
-- Sources:
--   SN2201, SN3700, SN4700: docscontent.nvidia.com (official NVIDIA docs CDN,
--     backed by k3-prod-nvidia-docs.s3.us-west-2.amazonaws.com)
--   SN3750-SX: cdn.uvation.com (reseller CDN — no official NVIDIA front-view photo)
--   SN5400, SN5600: direct S3 from k3-prod-nvidia-docs (SN5000 hardware manual)
--
-- All URLs verified HTTP 200 image/png (2026-04-21).

-- SN2201 — Spectrum-1, 1GbE management switch
UPDATE switches
SET image_url        = 'https://docscontent.nvidia.com/dims4/default/0ed212d/2147483647/strip/true/crop/1487x152+0+0/resize/1440x147!/quality/90/?url=https%3A%2F%2Fk3-prod-nvidia-docs.s3.us-west-2.amazonaws.com%2Fbrightspot%2Fconfluence%2F0000019a-2ff0-da13-abfe-bffbc48b0000%2Fimages%2Fdownload%2Fattachments%2F4232636769%2Fimage2021-12-7_10-37-52-version-1-modificationdate-1756395299567-api-v2.png',
    product_page_url = COALESCE(product_page_url, 'https://marketplace.nvidia.com/en-us/enterprise/networking/sn2201/'),
    assets_scraped_at = NOW()
WHERE model = 'SN2201'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'nvidia-networking');

-- SN3700 — Spectrum-2, 32x100GbE
UPDATE switches
SET image_url        = 'https://docscontent.nvidia.com/dims4/default/3be2526/2147483647/strip/true/crop/1333x142+0+0/resize/1333x142!/quality/90/?url=https%3A%2F%2Fk3-prod-nvidia-docs.s3.us-west-2.amazonaws.com%2Fbrightspot%2Fconfluence%2F0000019a-4e93-d062-adbe-ce933de80000%2Fimages%2Fdownload%2Fattachments%2F4413914428%2Fimage2019-2-25_11-38-47-version-1-modificationdate-1761741936620-api-v2.png',
    product_page_url = COALESCE(product_page_url, 'https://marketplace.nvidia.com/en-us/enterprise/networking/sn3700/'),
    assets_scraped_at = NOW()
WHERE model = 'SN3700'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'nvidia-networking');

-- SN3750-SX — Spectrum-2, 32x200GbE (reseller CDN; no official NVIDIA front photo)
UPDATE switches
SET image_url        = 'https://cdn.uvation.com/uvationmarketplace/catalog/product/m/s/msn3750-vs2fsc_1.jpg',
    assets_scraped_at = NOW()
WHERE model = 'SN3750-SX'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'nvidia-networking');

-- SN4700 — Spectrum-3, 32x400GbE
UPDATE switches
SET image_url        = 'https://docscontent.nvidia.com/dims4/default/019a2aa/2147483647/strip/true/crop/1791x188+0+0/resize/1440x151!/quality/90/?url=https%3A%2F%2Fk3-prod-nvidia-docs.s3.us-west-2.amazonaws.com%2Fbrightspot%2Fconfluence%2F0000019d-86b0-ddad-a3bf-eff5dced0000%2Fimages%2Fdownload%2Fattachments%2F4794381944%2Fimage2020-5-3_12-15-57-version-1-modificationdate-1775996206557-api-v2.png',
    product_page_url = COALESCE(product_page_url, 'https://marketplace.nvidia.com/en-us/enterprise/networking/sn4700/'),
    assets_scraped_at = NOW()
WHERE model = 'SN4700'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'nvidia-networking');

-- SN5400 — Spectrum-4, 64x400GbE, 2U
UPDATE switches
SET image_url        = 'https://k3-prod-nvidia-docs.s3.us-west-2.amazonaws.com/brightspot/confluence/0000019d-1a8d-dcc0-a39f-dacdabb80000/images/download/attachments/2705811518/image-2025-2-9_11-39-27-version-1-modificationdate-1744286748050-api-v2.png',
    product_page_url = COALESCE(product_page_url, 'https://www.nvidia.com/en-us/networking/spectrumx/'),
    assets_scraped_at = NOW()
WHERE model = 'SN5400'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'nvidia-networking');

-- SN5600 — Spectrum-4, 64x800GbE, 2U
UPDATE switches
SET image_url        = 'https://k3-prod-nvidia-docs.s3.us-west-2.amazonaws.com/brightspot/confluence/0000019d-1a8d-dcc0-a39f-dacdabb80000/images/download/attachments/2705811518/image-2025-2-9_11-37-20-version-1-modificationdate-1744286748283-api-v2.png',
    product_page_url = COALESCE(product_page_url, 'https://www.nvidia.com/en-us/networking/spectrumx/'),
    assets_scraped_at = NOW()
WHERE model = 'SN5600'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'nvidia-networking');
