-- Migration 076 — QCT (Quanta Cloud Technology), QNAP, Sophos
--
-- All URLs verified HTTP 200 (2026-04-21).
--
-- QCT (Quanta Cloud Technology):
--   T7032-IX1: qct.io official product gallery CDN (PNG, 740×460, 77KB).
--   T7064-IX4: hyperscalers.com product image (900×900 PNG, 369KB).
--     QCT removed T7064-IX4 page from their current site (product EOL'd);
--     hyperscalers.com has the only accessible product photo.
--   T9032-IX9: qct.io official product gallery CDN (PNG, 88KB).
--   T7064-IX1D: no accessible public image found on any source; skipped.
--
-- QNAP:
--   QSW-M5216-1T: cdn.blueally.com (QNAPworks partner CDN, stable).
--     qnap.com/uploads returns 403; blueally.com front.png confirmed 200 OK.
--
-- Sophos:
--   CS210-48FP: images.contentstack.io (official Sophos ContentStack CDN).
--     Front-view PNG, confirmed 200 OK from Sophos product comparison page.
--     URL includes Sophos-standard query params (immutable=true, cache=true).

-- ── QCT (Quanta Cloud Technology) ────────────────────────────────────────────

-- T7032-IX1 — 32×100G QSFP28 bare-metal spine switch (Tomahawk)
UPDATE switches
SET image_url        = 'https://www.qct.io/upload/website/product/gallery/normal/NetworkSwitchQuantaMeshT7032IX1_FrontView02-740x460_17112415623.png',
    product_page_url = COALESCE(product_page_url, 'https://www.qct.io/product/index/Networking/Ethernet-Switch/T7000-Series/T7032-IX1'),
    assets_scraped_at = NOW()
WHERE model = 'QuantaMesh T7032-IX1'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'quanta-cloud-technology');

-- T7064-IX4 — 64×100G QSFP28 bare-metal 2U spine switch (Tomahawk 2)
-- Image from hyperscalers.com (QCT official page removed — product EOL'd)
UPDATE switches
SET image_url        = 'https://www.hyperscalers.com/image/cache/catalog/00-Products/Networking/QuantaMesh-BMS-T7064-IX4_DSC3446_18040216744-900x900.png',
    product_page_url = COALESCE(product_page_url, 'https://www.hyperscalers.com/100G-switch-cumulus-QuantaMesh-BMS-T7064-IX4'),
    assets_scraped_at = NOW()
WHERE model = 'QuantaMesh T7064-IX4'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'quanta-cloud-technology');

-- T9032-IX9 — 32×400G QSFP-DD bare-metal spine switch (first 400G QuantaMesh)
UPDATE switches
SET image_url        = 'https://www.qct.io/upload/website/product/gallery/normal/ix9_DSC4879_19080210498_19081310742.png',
    product_page_url = COALESCE(product_page_url, 'https://www.qct.io/en-US/product/index/Switch/Bare-Metal-Switch/Spine-Switch/QuantaMesh-BMS-T9032-IX9'),
    assets_scraped_at = NOW()
WHERE model = 'QuantaMesh T9032-IX9'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'quanta-cloud-technology');

-- ── QNAP ──────────────────────────────────────────────────────────────────────

-- QSW-M5216-1T — 16×25GbE SFP28 + 1×10GbE NBASE-T layer 2 managed switch
UPDATE switches
SET image_url        = 'https://cdn.blueally.com/qnapworks/images/switches/qsw-m5216-1t/front.png',
    product_page_url = COALESCE(product_page_url, 'https://www.qnap.com/en-us/product/qsw-m5216-1t'),
    assets_scraped_at = NOW()
WHERE model = 'QSW-M5216-1T'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'qnap');

-- ── Sophos ────────────────────────────────────────────────────────────────────

-- CS210-48FP — 48×1G (16×2.5G) + Full PoE cloud-managed switch (200 Series)
UPDATE switches
SET image_url        = 'https://images.contentstack.io/v3/assets/blt38f1f401b66100ad/blt7076601a3bae0b40/690f99fc6f78933df27cee37/cs210-48fp-front.png?width=850&quality=80&format=auto&cache=true&immutable=true',
    product_page_url = COALESCE(product_page_url, 'https://www.sophos.com/en-us/products/sophos-switch/200-1000-series-network-switch-compare'),
    assets_scraped_at = NOW()
WHERE model = 'CS210-48FP'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'sophos');
