-- Migration: 000.608.sql
-- Description: Insert swapped products data

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e315866') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e95773') as new_product_id,
    '2025-11-01 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e317955') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e95776') as new_product_id,
    '2025-11-01 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e315670') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e95775') as new_product_id,
    '2025-11-01 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e315777') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e95779') as new_product_id,
    '2025-11-01 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e315647') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e95780') as new_product_id,
    '2025-11-01 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e315768') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e95774') as new_product_id,
    '2025-11-01 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e315778') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e95777') as new_product_id,
    '2025-11-01 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e50056') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e95996') as new_product_id,
    '2025-12-11 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e23327') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e96709') as new_product_id,
    '2026-02-09 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e327883') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e96711') as new_product_id,
    '2026-02-10 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e312190') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e96710') as new_product_id,
    '2026-02-10 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e318192') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e96740') as new_product_id,
    '2026-02-10 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e93543') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e96737') as new_product_id,
    '2026-02-10 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e333621') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e96738') as new_product_id,
    '2026-02-10 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e325008') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e96747') as new_product_id,
    '2026-02-11 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e316133') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e96753') as new_product_id,
    '2026-02-11 00:00:00+00'::timestamptz as swapped_at;

INSERT INTO swapped_products (original_product_id, new_product_id, swapped_at)
SELECT 
    (SELECT id FROM v_product WHERE "artNo" = 'e325045') as original_product_id,
    (SELECT id FROM v_product WHERE "artNo" = 'e96757') as new_product_id,
    '2026-02-11 00:00:00+00'::timestamptz as swapped_at;
