-- Normalize legacy raw R2-key rows in deal_images.url to the proxy-URL convention.
-- Matches upload-image.ts:120 contract: /api/img/<variant>/<format>/<r2Key>.
-- Format=webp to match what upload-image.ts writes. Idempotent.
UPDATE deal_images
SET url = '/api/img/card/webp/' || url
WHERE url NOT LIKE '/api/img/%'
  AND url NOT LIKE 'http%';
