
INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('28152640129', '028152640129', '84839089', 'gearbox housing blank ''GR4H-10', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('8222640822', '008222640822', '84839089', 'planet gear carrier blank ''stage 1', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('3064540201', '003064540201', '84312000', 'wheel hub', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('8212640113', '008212640113', '84312000', 'transmission housing blank ''GR2E-04', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('28152643516', '028152643516', '84831095', 'wheel shaft blank', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('4222640104', '004222640104', '84139100', 'gearbox housing blank ''AK20E', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('28152643502', '028152643502', '84839089', 'wheel shaft blank', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('28152640804', '028152640804', '84839089', 'planet gear carrier blank ''staire 2', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('4222640805', '004222640805', '84139100', 'planet gear carrier blank ''staire 2', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('4222640803', '004222640803', '84139100', 'planet gear carrier blank ''stage 1', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('8212640811', '008212640811', '84839089', 'planet gear carrier blank', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('8212640827', '008212640827', '84312000', 'planet gear carrier blank ''Stufe 1', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('5512640104', '005512640104', '84312000', 'transmission housing blank', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('5512640106', '005512640106', '84312000', 'transmission housing blank', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('8263500575', '008263500575', '85015220', 'traction motor assy. ''AE18-10 left', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('8263500576', '008263500576', '85015220', 'traction motor assy. ''AE18-10 right', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('28523500575', '028523500575', '85015230', 'traction motor assy. ''AE35-10 links', FALSE);

INSERT INTO material (part_number, normalized_part_number, hs_code, name, is_deprecated)
VALUES ('28523500576', '028523500576', '85015230', 'traction motor assy. ''AE35-10 rechts', FALSE);


-- ============================================
-- Packaging Data Import SQL
-- ============================================

-- Zuerst die packaging_property_types für stackable und rust prevention erstellen
-- (falls sie noch nicht existieren)
INSERT INTO packaging_property_type (name, external_mapping_id, data_type, validation_rule, is_required, description, property_group, sequence_number)
VALUES
    ('Stackable', 'STACKABLE', 'BOOLEAN', NULL, FALSE, 'desc', 'general', 1),
    ('Rust Prevention', 'RUST_PREVENTION', 'BOOLEAN', NULL, FALSE, 'desc', 'general', 2),
    ('Mixable', 'MIXABLE', 'BOOLEAN', NULL, FALSE, 'desc', 'general', 3)
ON DUPLICATE KEY UPDATE
                     name = VALUES(name),
                     data_type = VALUES(data_type);

-- ============================================
-- SHU Packaging Dimensions
-- ============================================

-- Part Number: 28152640129
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 7000, 7900, 'CM', 677000, 'KG', 1, FALSE);
SET @shu_dim_28152640129 = LAST_INSERT_ID();

-- Part Number: 28152640129 baoli
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12005, 7005, 7905, 'CM', 678000, 'KG', 1, FALSE);
SET @shu_dim_28152640129_baoli = LAST_INSERT_ID();


-- Part Number: 8222640822
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 5200, 'CM', 942000, 'KG', 630, FALSE);
SET @shu_dim_8222640822 = LAST_INSERT_ID();

-- Part Number: 3064540201
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 5200, 'CM', 868000, 'KG', 160, FALSE);
SET @shu_dim_3064540201 = LAST_INSERT_ID();

-- Part Number: 8212640113
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 6500, 'CM', 702000, 'KG', 54, FALSE);
SET @shu_dim_8212640113 = LAST_INSERT_ID();

-- Part Number: 28152643516
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 4700, 'CM', 912000, 'KG', 60, FALSE);
SET @shu_dim_28152643516 = LAST_INSERT_ID();

-- Part Number: 4222640104
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 5700, 'CM', 1074000, 'KG', 400, FALSE);
SET @shu_dim_4222640104 = LAST_INSERT_ID();

-- Part Number: 28152643502
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 4700, 'CM', 912000, 'KG', 60, FALSE);
SET @shu_dim_28152643502 = LAST_INSERT_ID();

-- Part Number: 28152640804
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 4700, 'CM', 740000, 'KG', 48, FALSE);
SET @shu_dim_28152640804 = LAST_INSERT_ID();

-- Part Number: 4222640805
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 5700, 'CM', 912000, 'KG', 300, FALSE);
SET @shu_dim_4222640805 = LAST_INSERT_ID();

-- Part Number: 4222640803
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 5700, 'CM', 962000, 'KG', 320, FALSE);
SET @shu_dim_4222640803 = LAST_INSERT_ID();

-- Part Number: 8212640811
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 3400, 'CM', 962000, 'KG', 320, FALSE);
SET @shu_dim_8212640811 = LAST_INSERT_ID();

-- Part Number: 8212640827
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 3400, 'CM', 962000, 'KG', 320, FALSE);
SET @shu_dim_8212640827 = LAST_INSERT_ID();

-- Part Number: 5512640104
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 5700, 'CM', 1074000, 'KG', 400, FALSE);
SET @shu_dim_5512640104 = LAST_INSERT_ID();

-- Part Number: 5512640106
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 5700, 'CM', 1074000, 'KG', 400, FALSE);
SET @shu_dim_5512640106 = LAST_INSERT_ID();

-- Part Number: 8263500575
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 5200, 'CM', 1050000, 'KG', 600, FALSE);
SET @shu_dim_8263500575 = LAST_INSERT_ID();

-- Part Number: 8263500576
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 5200, 'CM', 1050000, 'KG', 600, FALSE);
SET @shu_dim_8263500576 = LAST_INSERT_ID();

-- Part Number: 28523500575
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 5200, 'CM', 1050000, 'KG', 600, FALSE);
SET @shu_dim_28523500575 = LAST_INSERT_ID();

-- Part Number: 28523500576
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('SHU', 12000, 8000, 5200, 'CM', 1050000, 'KG', 600, FALSE);
SET @shu_dim_28523500576 = LAST_INSERT_ID();

-- ============================================
-- HU Packaging Dimensions
-- ============================================

-- Part Number: 28152640129
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 700, 790, 'MM', 677000, 'KG', 1, FALSE);
SET @hu_dim_28152640129 = LAST_INSERT_ID();

-- Part Number: 28152640129 Baoli
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1205, 705, 785, 'MM', 678000, 'KG', 1, FALSE);
SET @hu_dim_28152640129_baoli = LAST_INSERT_ID();

-- Part Number: 8222640822
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 520, 'MM', 942000, 'KG', 1, FALSE);
SET @hu_dim_8222640822 = LAST_INSERT_ID();

-- Part Number: 3064540201
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 520, 'MM', 868000, 'KG', 1, FALSE);
SET @hu_dim_3064540201 = LAST_INSERT_ID();

-- Part Number: 8212640113
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 650, 'MM', 702000, 'KG', 1, FALSE);
SET @hu_dim_8212640113 = LAST_INSERT_ID();

-- Part Number: 28152643516
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 470, 'MM', 912000, 'KG', 1, FALSE);
SET @hu_dim_28152643516 = LAST_INSERT_ID();

-- Part Number: 4222640104
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 570, 'MM', 1074000, 'KG', 1, FALSE);
SET @hu_dim_4222640104 = LAST_INSERT_ID();

-- Part Number: 28152643502
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 470, 'MM', 912000, 'KG', 1, FALSE);
SET @hu_dim_28152643502 = LAST_INSERT_ID();

-- Part Number: 28152640804
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 470, 'MM', 740000, 'KG', 1, FALSE);
SET @hu_dim_28152640804 = LAST_INSERT_ID();

-- Part Number: 4222640805
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 570, 'MM', 912000, 'KG', 1, FALSE);
SET @hu_dim_4222640805 = LAST_INSERT_ID();

-- Part Number: 4222640803
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 570, 'MM', 962000, 'KG', 1, FALSE);
SET @hu_dim_4222640803 = LAST_INSERT_ID();

-- Part Number: 8212640811
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 340, 'MM', 962000, 'KG', 1, FALSE);
SET @hu_dim_8212640811 = LAST_INSERT_ID();

-- Part Number: 8212640827
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 340, 'MM', 962000, 'KG', 1, FALSE);
SET @hu_dim_8212640827 = LAST_INSERT_ID();

-- Part Number: 5512640104
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 570, 'MM', 1074000, 'KG', 1, FALSE);
SET @hu_dim_5512640104 = LAST_INSERT_ID();

-- Part Number: 5512640106
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 570, 'MM', 1074000, 'KG', 1, FALSE);
SET @hu_dim_5512640106 = LAST_INSERT_ID();

-- Part Number: 8263500575
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 520, 'MM', 1050000, 'KG', 1, FALSE);
SET @hu_dim_8263500575 = LAST_INSERT_ID();

-- Part Number: 8263500576
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 520, 'MM', 1050000, 'KG', 1, FALSE);
SET @hu_dim_8263500576 = LAST_INSERT_ID();

-- Part Number: 28523500575
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 520, 'MM', 1050000, 'KG', 1, FALSE);
SET @hu_dim_28523500575 = LAST_INSERT_ID();

-- Part Number: 28523500576
INSERT INTO packaging_dimension (type, length, width, height, displayed_dimension_unit, weight, displayed_weight_unit, content_unit_count, is_deprecated)
VALUES ('HU', 1200, 800, 520, 'MM', 1050000, 'KG', 1, FALSE);
SET @hu_dim_28523500576 = LAST_INSERT_ID();

-- ============================================
-- Packaging Einträge
-- ============================================

-- Part Number: 28152640129
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '28152640129' LIMIT 1),
           @hu_dim_28152640129,
           @shu_dim_28152640129,
           FALSE
       );
SET @packaging_28152640129 = LAST_INSERT_ID();

-- Part Number: 28152640129
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'JJ' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '28152640129' LIMIT 1),
           @hu_dim_28152640129_baoli,
           @shu_dim_28152640129_baoli,
           FALSE
       );
SET @packaging_28152640129_baoli = LAST_INSERT_ID();

-- Part Number: 8222640822
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '8222640822' LIMIT 1),
           @hu_dim_8222640822,
           @shu_dim_8222640822,
           FALSE
       );
SET @packaging_8222640822 = LAST_INSERT_ID();

-- Part Number: 3064540201
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '3064540201' LIMIT 1),
           @hu_dim_3064540201,
           @shu_dim_3064540201,
           FALSE
       );
SET @packaging_3064540201 = LAST_INSERT_ID();

-- Part Number: 8212640113
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'JJ' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '8212640113' LIMIT 1),
           @hu_dim_8212640113,
           @shu_dim_8212640113,
           FALSE
       );
SET @packaging_8212640113 = LAST_INSERT_ID();

-- Part Number: 28152643516
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '28152643516' LIMIT 1),
           @hu_dim_28152643516,
           @shu_dim_28152643516,
           FALSE
       );
SET @packaging_28152643516 = LAST_INSERT_ID();

-- Part Number: 4222640104
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '4222640104' LIMIT 1),
           @hu_dim_4222640104,
           @shu_dim_4222640104,
           FALSE
       );
SET @packaging_4222640104 = LAST_INSERT_ID();

-- Part Number: 28152643502
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '28152643502' LIMIT 1),
           @hu_dim_28152643502,
           @shu_dim_28152643502,
           FALSE
       );
SET @packaging_28152643502 = LAST_INSERT_ID();

-- Part Number: 28152640804
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '28152640804' LIMIT 1),
           @hu_dim_28152640804,
           @shu_dim_28152640804,
           FALSE
       );
SET @packaging_28152640804 = LAST_INSERT_ID();

-- Part Number: 4222640805
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '4222640805' LIMIT 1),
           @hu_dim_4222640805,
           @shu_dim_4222640805,
           FALSE
       );
SET @packaging_4222640805 = LAST_INSERT_ID();

-- Part Number: 4222640803
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '4222640803' LIMIT 1),
           @hu_dim_4222640803,
           @shu_dim_4222640803,
           FALSE
       );
SET @packaging_4222640803 = LAST_INSERT_ID();

-- Part Number: 8212640811
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '8212640811' LIMIT 1),
           @hu_dim_8212640811,
           @shu_dim_8212640811,
           FALSE
       );
SET @packaging_8212640811 = LAST_INSERT_ID();

-- Part Number: 8212640827
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '8212640827' LIMIT 1),
           @hu_dim_8212640827,
           @shu_dim_8212640827,
           FALSE
       );
SET @packaging_8212640827 = LAST_INSERT_ID();

-- Part Number: 5512640104
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '5512640104' LIMIT 1),
           @hu_dim_5512640104,
           @shu_dim_5512640104,
           FALSE
       );
SET @packaging_5512640104 = LAST_INSERT_ID();

-- Part Number: 5512640106
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '5512640106' LIMIT 1),
           @hu_dim_5512640106,
           @shu_dim_5512640106,
           FALSE
       );
SET @packaging_5512640106 = LAST_INSERT_ID();

-- Part Number: 8263500575
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '8263500575' LIMIT 1),
           @hu_dim_8263500575,
           @shu_dim_8263500575,
           FALSE
       );
SET @packaging_8263500575 = LAST_INSERT_ID();

-- Part Number: 8263500576
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '8263500576' LIMIT 1),
           @hu_dim_8263500576,
           @shu_dim_8263500576,
           FALSE
       );
SET @packaging_8263500576 = LAST_INSERT_ID();

-- Part Number: 28523500575
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '28523500575' LIMIT 1),
           @hu_dim_28523500575,
           @shu_dim_28523500575,
           FALSE
       );
SET @packaging_28523500575 = LAST_INSERT_ID();

-- Part Number: 28523500576
INSERT INTO packaging (supplier_node_id, material_id, hu_dimension_id, shu_dimension_id, is_deprecated)
VALUES (
           (SELECT id FROM node WHERE external_mapping_id = 'LX' LIMIT 1),
           (SELECT id FROM material WHERE part_number = '28523500576' LIMIT 1),
           @hu_dim_28523500576,
           @shu_dim_28523500576,
           FALSE
       );
SET @packaging_28523500576 = LAST_INSERT_ID();

-- ============================================
-- Packaging Properties
-- ============================================

-- Stackable und Rust Prevention Property Type IDs ermitteln
SET @stackable_type_id = (SELECT id FROM packaging_property_type WHERE external_mapping_id = 'STACKABLE' LIMIT 1);
SET @rust_prevention_type_id = (SELECT id FROM packaging_property_type WHERE external_mapping_id = 'RUST_PREVENTION' LIMIT 1);

-- Part Number: 28152640129 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_28152640129, 'true'),
    (@rust_prevention_type_id, @packaging_28152640129, 'false');

-- Part Number: 28152640129 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_28152640129_baoli, 'true'),
    (@rust_prevention_type_id, @packaging_28152640129_baoli, 'false');

-- Part Number: 8222640822 - Stackable: No, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_8222640822, 'false'),
    (@rust_prevention_type_id, @packaging_8222640822, 'false');

-- Part Number: 3064540201 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_3064540201, 'true'),
    (@rust_prevention_type_id, @packaging_3064540201, 'false');

-- Part Number: 8212640113 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_8212640113, 'true'),
    (@rust_prevention_type_id, @packaging_8212640113, 'false');

-- Part Number: 28152643516 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_28152643516, 'true'),
    (@rust_prevention_type_id, @packaging_28152643516, 'false');

-- Part Number: 4222640104 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_4222640104, 'true'),
    (@rust_prevention_type_id, @packaging_4222640104, 'false');

-- Part Number: 28152643502 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_28152643502, 'true'),
    (@rust_prevention_type_id, @packaging_28152643502, 'false');

-- Part Number: 28152640804 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_28152640804, 'true'),
    (@rust_prevention_type_id, @packaging_28152640804, 'false');

-- Part Number: 4222640805 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_4222640805, 'true'),
    (@rust_prevention_type_id, @packaging_4222640805, 'false');

-- Part Number: 4222640803 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_4222640803, 'true'),
    (@rust_prevention_type_id, @packaging_4222640803, 'false');

-- Part Number: 8212640811 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_8212640811, 'true'),
    (@rust_prevention_type_id, @packaging_8212640811, 'false');

-- Part Number: 8212640827 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_8212640827, 'true'),
    (@rust_prevention_type_id, @packaging_8212640827, 'false');

-- Part Number: 5512640104 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_5512640104, 'true'),
    (@rust_prevention_type_id, @packaging_5512640104, 'false');

-- Part Number: 5512640106 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_5512640106, 'true'),
    (@rust_prevention_type_id, @packaging_5512640106, 'false');

-- Part Number: 8263500575 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_8263500575, 'true'),
    (@rust_prevention_type_id, @packaging_8263500575, 'false');

-- Part Number: 8263500576 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_8263500576, 'true'),
    (@rust_prevention_type_id, @packaging_8263500576, 'false');

-- Part Number: 28523500575 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_28523500575, 'true'),
    (@rust_prevention_type_id, @packaging_28523500575, 'false');

-- Part Number: 28523500576 - Stackable: Yes, Rust Prevention: No
INSERT INTO packaging_property (packaging_property_type_id, packaging_id, property_value)
VALUES
    (@stackable_type_id, @packaging_28523500576, 'true'),
    (@rust_prevention_type_id, @packaging_28523500576, 'false');
