-- Migration 050 — Allied Telesis product images (direct URL injection)
--
-- Source: alliedtelesis.com og:image (Drupal CMS, static files CDN)
-- All URLs verified HTTP 200 image/png (2026-04-21).

-- AT-x530-28GSX — x530 Series Gigabit PoE+ Smart Access Switch
UPDATE switches
SET image_url        = 'https://www.alliedtelesis.com/sites/default/files/image/2022-07/x530-series-3840.png',
    product_page_url = COALESCE(product_page_url, 'https://www.alliedtelesis.com/products/switches/x530-series'),
    assets_scraped_at = NOW()
WHERE model = 'AT-x530-28GSX'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'allied-telesis');

-- AT-x530L-52GPX — x530L Series PoE+ Access Switch
UPDATE switches
SET image_url        = 'https://www.alliedtelesis.com/sites/default/files/image/2021-11/x530L-series-3840.png',
    product_page_url = COALESCE(product_page_url, 'https://www.alliedtelesis.com/products/switches/x530l-series'),
    assets_scraped_at = NOW()
WHERE model = 'AT-x530L-52GPX'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'allied-telesis');

-- AT-x950-28XSQ — x950 Series Aggregation Switch
UPDATE switches
SET image_url        = 'https://www.alliedtelesis.com/sites/default/files/image/2021-11/x950-28-52-3840.png',
    product_page_url = COALESCE(product_page_url, 'https://www.alliedtelesis.com/products/switches/x950-series'),
    assets_scraped_at = NOW()
WHERE model = 'AT-x950-28XSQ'
  AND vendor_id = (SELECT id FROM vendors WHERE slug = 'allied-telesis');
