-- ========================================
-- 04-insert-hierarchy.sql
-- Segunda Carga Masiva Open Insurance
-- ========================================

-- CRITICAL: Crear 7 agency_level por cada commercial_structure
-- Uno por cada agency_level_type (Level 0-6)

SET @commercial_structure_id = (SELECT COALESCE(MAX(id), 0) + 1 FROM commercial_structure);
SET @agency_level_id = (SELECT COALESCE(MAX(id), 0) + 1 FROM agency_level);
SET @base_agent_id = (SELECT MAX(id) - 419 FROM general_agent);
SET @base_agreement_id = (SELECT MAX(id) - 419 FROM agreement);
SET @main_agency_id = 57;  -- MainAgency QRM
SET @open_insurance_id = 786;  -- Open Insurances QRM000785
SET @main_agency_agreement = (SELECT MIN(id) FROM agreement WHERE agent_id = 57);
SET @open_insurance_agreement = (SELECT id FROM agreement WHERE agent_id = 786 LIMIT 1);

-- [1/420] Open Insurance LLC

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 0, 6, @base_agreement_id + 0, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [2/420] Jason Wagner → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 1, 6, @base_agreement_id + 1, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [3/420] Daniel Feigenbaum → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 2, 6, @base_agreement_id + 2, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [4/420] Juan Carlos Fernandez Aleman → parent #5

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 3, 6, @base_agreement_id + 3, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 4, @base_agreement_id + 4, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [5/420] Isabel Fernandez Aleman → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 4, 6, @base_agreement_id + 4, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [6/420] La Coordinadora La Coordinadora → parent #5

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 5, 6, @base_agreement_id + 5, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 4, @base_agreement_id + 4, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [7/420] Jose Felipe Herrera Calcano → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 6, 6, @base_agreement_id + 6, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [8/420] Gonzalo Veloz → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 7, 6, @base_agreement_id + 7, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [9/420] Ricardo Salas Martinez → parent #5

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 8, 6, @base_agreement_id + 8, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 4, @base_agreement_id + 4, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [10/420] Anna Fusella → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 9, 6, @base_agreement_id + 9, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [11/420] Maria del Pilar Avendano Cisneros → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 10, 6, @base_agreement_id + 10, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [12/420] Alfredo Jose Martinez Bermudez → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 11, 6, @base_agreement_id + 11, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [13/420] Wendy Moya → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 12, 6, @base_agreement_id + 12, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [14/420] Maria Ciniglio → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 13, 6, @base_agreement_id + 13, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [15/420] Ana Teresa Fernandez Aleman → parent #6

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 14, 6, @base_agreement_id + 14, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 5, @base_agreement_id + 5, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [16/420] Ysmerai Loundior → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 15, 6, @base_agreement_id + 15, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [17/420] Raquel Munoz → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 16, 6, @base_agreement_id + 16, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [18/420] Dale Neuenschwander → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 17, 6, @base_agreement_id + 17, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [19/420] Lenny Trivino → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 18, 6, @base_agreement_id + 18, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [20/420] Luis Avila Merino → parent #6

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 19, 6, @base_agreement_id + 19, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 5, @base_agreement_id + 5, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [21/420] Guillermo Ochoa → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 20, 6, @base_agreement_id + 20, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [22/420] Paolo Nicolicchia → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 21, 6, @base_agreement_id + 21, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [23/420] Gustavo Rojas → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 22, 6, @base_agreement_id + 22, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [24/420] Gustavo Rojas → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 23, 6, @base_agreement_id + 23, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [25/420] Ainola Iturralde → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 24, 6, @base_agreement_id + 24, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [26/420] Kevin Ryan → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 25, 6, @base_agreement_id + 25, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [27/420] Ranjeeta Singh → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 26, 6, @base_agreement_id + 26, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [28/420] David Waich → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 27, 6, @base_agreement_id + 27, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [29/420] Antonio Sanchez → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 28, 6, @base_agreement_id + 28, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [30/420] Miguel Ratini → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 29, 6, @base_agreement_id + 29, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [31/420] Mark Wiersma → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 30, 6, @base_agreement_id + 30, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [32/420] Alejandro Pages → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 31, 6, @base_agreement_id + 31, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [33/420] Cesar Michelangeli Cesar Michelangeli → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 32, 6, @base_agreement_id + 32, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [34/420] Luis Cercos Ruiz → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 33, 6, @base_agreement_id + 33, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [35/420] Anabelle Fernandez Soto → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 34, 6, @base_agreement_id + 34, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [36/420] Mayda Acosta → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 35, 6, @base_agreement_id + 35, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [37/420] Mikelander Aldecoa → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 36, 6, @base_agreement_id + 36, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [38/420] Laura Tinoco de Gonzalez → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 37, 6, @base_agreement_id + 37, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [39/420] ADONIS TOMEY → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 38, 6, @base_agreement_id + 38, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [40/420] Grecia Alejandra Chacon Duran → parent #8

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 39, 6, @base_agreement_id + 39, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 7, @base_agreement_id + 7, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [41/420] Alfredo Benedettti Punceles → parent #8

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 40, 6, @base_agreement_id + 40, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 7, @base_agreement_id + 7, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [42/420] JORGE LUIS MIRELES CRESPO → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 41, 6, @base_agreement_id + 41, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [43/420] JOHAN LEAL SALGUERO → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 42, 6, @base_agreement_id + 42, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [44/420] Julio Canas → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 43, 6, @base_agreement_id + 43, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [45/420] RAFAEL CORDERO → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 44, 6, @base_agreement_id + 44, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [46/420] Oriana Marino → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 45, 6, @base_agreement_id + 45, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [47/420] Johnny Blatt → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 46, 6, @base_agreement_id + 46, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [48/420] Tony Sosa → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 47, 6, @base_agreement_id + 47, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [49/420] Ricardo Villarroel → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 48, 6, @base_agreement_id + 48, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [50/420] GUSTAVO MASSIANI → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 49, 6, @base_agreement_id + 49, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [51/420] Eduardo Montero Gonzalez → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 50, 6, @base_agreement_id + 50, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [52/420] REINALDO LAINVILLE TIRADO → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 51, 6, @base_agreement_id + 51, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [53/420] Carlos Cordero Vazquez → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 52, 6, @base_agreement_id + 52, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [54/420] Jackleny Castro → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 53, 6, @base_agreement_id + 53, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [55/420] Marisela Franzius → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 54, 6, @base_agreement_id + 54, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [56/420] John Fredy Sanchez Sepulveda → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 55, 6, @base_agreement_id + 55, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [57/420] Julio Salas Reyes → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 56, 6, @base_agreement_id + 56, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [58/420] Isidro Nava → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 57, 6, @base_agreement_id + 57, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [59/420] Walter Patricelli → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 58, 6, @base_agreement_id + 58, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [60/420] Carlos Velarde → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 59, 6, @base_agreement_id + 59, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [61/420] Sarai Tovar Martinez → parent #6

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 60, 6, @base_agreement_id + 60, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 5, @base_agreement_id + 5, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [62/420] Jose Oliveira → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 61, 6, @base_agreement_id + 61, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [63/420] John Johnson Fischel → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 62, 6, @base_agreement_id + 62, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [64/420] Andrea Sofia Reyes Arvelo → parent #63

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 63, 6, @base_agreement_id + 63, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 62, @base_agreement_id + 62, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [65/420] Servio Tulio Rangel → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 64, 6, @base_agreement_id + 64, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [66/420] Ana Clemencia Vivas → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 65, 6, @base_agreement_id + 65, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [67/420] Adriana Rivas → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 66, 6, @base_agreement_id + 66, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [68/420] Salomon Abadi → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 67, 6, @base_agreement_id + 67, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [69/420] Marysol Roca Marysol Roca → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 68, 6, @base_agreement_id + 68, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [70/420] Alvaro Sucre Guruceaga → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 69, 6, @base_agreement_id + 69, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [71/420] Sofia Alejandra Fernandez → parent #46

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 70, 6, @base_agreement_id + 70, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 45, @base_agreement_id + 45, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [72/420] Angela Viviana Sanchez → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 71, 6, @base_agreement_id + 71, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [73/420] Monserrat Feliu → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 72, 6, @base_agreement_id + 72, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [74/420] Jenny Alvarado → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 73, 6, @base_agreement_id + 73, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [75/420] Andrea Figueroa Ravell → parent #46

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 74, 6, @base_agreement_id + 74, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 45, @base_agreement_id + 45, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [76/420] Luis Alberto Ricaurte Chumo → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 75, 6, @base_agreement_id + 75, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [77/420] Ana Maria Chiriboga → parent #76

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 76, 6, @base_agreement_id + 76, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 75, @base_agreement_id + 75, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [78/420] Thais Moreno → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 77, 6, @base_agreement_id + 77, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [79/420] Jacob Mizrahi → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 78, 6, @base_agreement_id + 78, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [80/420] Maria Elisa Monaco → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 79, 6, @base_agreement_id + 79, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [81/420] Andreina Avellaneda → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 80, 6, @base_agreement_id + 80, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [82/420] Ascensio Cercio → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 81, 6, @base_agreement_id + 81, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [83/420] Oriana Gabriela Marino Morales → parent #46

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 82, 6, @base_agreement_id + 82, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 45, @base_agreement_id + 45, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [84/420] Jennifer Tomassetti → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 83, 6, @base_agreement_id + 83, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [85/420] David Eline → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 84, 6, @base_agreement_id + 84, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [86/420] Vanessa Jimenez → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 85, 6, @base_agreement_id + 85, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [87/420] Jaime Rafael Inciarte Molero → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 86, 6, @base_agreement_id + 86, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [88/420] Jose Vargas Hungria → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 87, 6, @base_agreement_id + 87, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [89/420] Rafael Jose Urribarri → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 88, 6, @base_agreement_id + 88, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [90/420] Sandra Rodriguez → parent #9

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 89, 6, @base_agreement_id + 89, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 8, @base_agreement_id + 8, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [91/420] Adriana Yumar → parent #70

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 90, 6, @base_agreement_id + 90, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 69, @base_agreement_id + 69, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [92/420] Alfredo Troconis

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 91, 6, @base_agreement_id + 91, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [93/420] Ana Borga → parent #70

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 92, 6, @base_agreement_id + 92, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 69, @base_agreement_id + 69, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [94/420] Ana Elizabeth Coll de Casado

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 93, 6, @base_agreement_id + 93, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [95/420] Ana Teresa Celis

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 94, 6, @base_agreement_id + 94, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [96/420] Ana Victoria Borga → parent #70

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 95, 6, @base_agreement_id + 95, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 69, @base_agreement_id + 69, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [97/420] Anastasia Romero Tovar

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 96, 6, @base_agreement_id + 96, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [98/420] Andreina Sucre

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 97, 6, @base_agreement_id + 97, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [99/420] Anita Tantino

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 98, 6, @base_agreement_id + 98, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [100/420] Arturo Chirinos → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 99, 6, @base_agreement_id + 99, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [101/420] Belisa Vegas → parent #70

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 100, 6, @base_agreement_id + 100, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 69, @base_agreement_id + 69, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [102/420] Blanca Marlene Mayorca

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 101, 6, @base_agreement_id + 101, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [103/420] Carlos Eduardo Guerra

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 102, 6, @base_agreement_id + 102, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [104/420] Claudia Guanipa

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 103, 6, @base_agreement_id + 103, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [105/420] Dharla Maldonado

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 104, 6, @base_agreement_id + 104, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [106/420] Diana Sosa

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 105, 6, @base_agreement_id + 105, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [107/420] Dixon Gonzalez

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 106, 6, @base_agreement_id + 106, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [108/420] Fernando Santos

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 107, 6, @base_agreement_id + 107, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [109/420] Gianni Russo

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 108, 6, @base_agreement_id + 108, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [110/420] Gladys Moros → parent #70

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 109, 6, @base_agreement_id + 109, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 69, @base_agreement_id + 69, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [111/420] Guillermo Ponte

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 110, 6, @base_agreement_id + 110, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [112/420] Hector Gonzalez Pineda → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 111, 6, @base_agreement_id + 111, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [113/420] Irma Fernandez

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 112, 6, @base_agreement_id + 112, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [114/420] Jeannie Pacheco

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 113, 6, @base_agreement_id + 113, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [115/420] Jenisse Arellano → parent #70

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 114, 6, @base_agreement_id + 114, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 69, @base_agreement_id + 69, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [116/420] Jose Antonio Madriz

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 115, 6, @base_agreement_id + 115, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [117/420] Jose Ignacio Sucre

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 116, 6, @base_agreement_id + 116, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [118/420] Juan Ignacio Sucre

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 117, 6, @base_agreement_id + 117, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [119/420] Rebeca Payares

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 118, 6, @base_agreement_id + 118, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [120/420] Beatriz Grau

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 119, 6, @base_agreement_id + 119, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [121/420] Ligia Jaimes → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 120, 6, @base_agreement_id + 120, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [122/420] Rodolfo Casado

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 121, 6, @base_agreement_id + 121, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [123/420] Rafael Diaz Lovera

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 122, 6, @base_agreement_id + 122, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [124/420] Lisbeth Perez

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 123, 6, @base_agreement_id + 123, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [125/420] Lorena Bracho

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 124, 6, @base_agreement_id + 124, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [126/420] Magin Rodriguez → parent #70

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 125, 6, @base_agreement_id + 125, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 69, @base_agreement_id + 69, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [127/420] Manuel Andres Diaz Sucre

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 126, 6, @base_agreement_id + 126, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [128/420] Maria Gabriela Vega → parent #70

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 127, 6, @base_agreement_id + 127, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 69, @base_agreement_id + 69, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [129/420] Maria Valentina Diaz Sucre

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 128, 6, @base_agreement_id + 128, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [130/420] Mary Fiorellys Barrios

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 129, 6, @base_agreement_id + 129, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [131/420] Natascha Benavides

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 130, 6, @base_agreement_id + 130, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [132/420] Rene Selem

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 131, 6, @base_agreement_id + 131, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [133/420] Sandra Rodriguez

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 132, 6, @base_agreement_id + 132, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [134/420] Magaly Suarez

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 133, 6, @base_agreement_id + 133, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [135/420] Antonio Sanz

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 134, 6, @base_agreement_id + 134, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [136/420] Charlie Correa

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 135, 6, @base_agreement_id + 135, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [137/420] Jose Rafael Ribas → parent #70

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 136, 6, @base_agreement_id + 136, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 69, @base_agreement_id + 69, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [138/420] Claudia Diaz

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 137, 6, @base_agreement_id + 137, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [139/420] Jose Enrique Diaz → parent #70

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 138, 6, @base_agreement_id + 138, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 69, @base_agreement_id + 69, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [140/420] Leonardo Lossada → parent #70

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 139, 6, @base_agreement_id + 139, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 69, @base_agreement_id + 69, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [141/420] Alberto Colina → parent #70

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 140, 6, @base_agreement_id + 140, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 69, @base_agreement_id + 69, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [142/420] Victor Babino → parent #70

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 141, 6, @base_agreement_id + 141, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 69, @base_agreement_id + 69, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [143/420] Jesus Rondon Benaim → parent #70

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 142, 6, @base_agreement_id + 142, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 69, @base_agreement_id + 69, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [144/420] Maria Gabriela Neri Luciani → parent #106

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 143, 6, @base_agreement_id + 143, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 105, @base_agreement_id + 105, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [145/420] Guillermo Marcano → parent #70

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 144, 6, @base_agreement_id + 144, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 69, @base_agreement_id + 69, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [146/420] Doris de Matattia → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 145, 6, @base_agreement_id + 145, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [147/420] Andreina Avila → parent #20

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 146, 6, @base_agreement_id + 146, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 19, @base_agreement_id + 19, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [148/420] Nabis de Jesus Mendoza Garcia → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 147, 6, @base_agreement_id + 147, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [149/420] Ricardo Rafael Raven Matheus → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 148, 6, @base_agreement_id + 148, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [150/420] Faine Coromoto Hernandez Sierra → parent #46

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 149, 6, @base_agreement_id + 149, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 45, @base_agreement_id + 45, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [151/420] Nadeska Carolina Pina Garrido → parent #46

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 150, 6, @base_agreement_id + 150, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 45, @base_agreement_id + 45, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [152/420] Erik Dupret → parent #8

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 151, 6, @base_agreement_id + 151, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 7, @base_agreement_id + 7, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [153/420] Carlos Eduardo Boccaccini → parent #146

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 152, 6, @base_agreement_id + 152, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 145, @base_agreement_id + 145, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [154/420] Monica Cristina Lecuna → parent #146

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 153, 6, @base_agreement_id + 153, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 145, @base_agreement_id + 145, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [155/420] Hector Fernandez → parent #146

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 154, 6, @base_agreement_id + 154, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 145, @base_agreement_id + 145, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [156/420] Hilda Ballester → parent #20

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 155, 6, @base_agreement_id + 155, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 19, @base_agreement_id + 19, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [157/420] Jose Humberto Barazarte → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 156, 6, @base_agreement_id + 156, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [158/420] Adrian Duque → parent #316

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 157, 6, @base_agreement_id + 157, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 315, @base_agreement_id + 315, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [159/420] Andres Marquez → parent #316

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 158, 6, @base_agreement_id + 158, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 315, @base_agreement_id + 315, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [160/420] Maria Daniela Alcala Lis → parent #20

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 159, 6, @base_agreement_id + 159, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 19, @base_agreement_id + 19, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [161/420] Manuela García de Carrasquero → parent #20

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 160, 6, @base_agreement_id + 160, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 19, @base_agreement_id + 19, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [162/420] Barbara Velasquez → parent #46

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 161, 6, @base_agreement_id + 161, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 45, @base_agreement_id + 45, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [163/420] Luis C. Dominguez → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 162, 6, @base_agreement_id + 162, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [164/420] Juan Alvaro Lopez Hernandez → parent #34

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 163, 6, @base_agreement_id + 163, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 33, @base_agreement_id + 33, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [165/420] Luis Fernando Avila Boffil → parent #20

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 164, 6, @base_agreement_id + 164, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 19, @base_agreement_id + 19, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [166/420] Antonio Sotillo Rosales → parent #65

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 165, 6, @base_agreement_id + 165, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 64, @base_agreement_id + 64, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [167/420] Maria Auxiliadora Ramirez Maria Auxiliadora Ramirez → parent #418

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 166, 6, @base_agreement_id + 166, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 417, @base_agreement_id + 417, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [168/420] Alvaro Cesar Almaral → parent #418

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 167, 6, @base_agreement_id + 167, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 417, @base_agreement_id + 417, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [169/420] Marisela Rincon → parent #418

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 168, 6, @base_agreement_id + 168, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 417, @base_agreement_id + 417, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [170/420] Adriana Carolina Lorenzo Triana → parent #5

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 169, 6, @base_agreement_id + 169, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 4, @base_agreement_id + 4, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [171/420] Maria Soledad Rodriguez → parent #418

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 170, 6, @base_agreement_id + 170, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 417, @base_agreement_id + 417, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [172/420] Rosa Perez → parent #418

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 171, 6, @base_agreement_id + 171, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 417, @base_agreement_id + 417, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [173/420] Pilar Bello → parent #418

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 172, 6, @base_agreement_id + 172, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 417, @base_agreement_id + 417, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [174/420] Juan Carlos Sucre Chapellin

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 173, 6, @base_agreement_id + 173, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [175/420] Iliana Zeppenfeldt → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 174, 6, @base_agreement_id + 174, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [176/420] Arnoldo Jimenez Canino → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 175, 6, @base_agreement_id + 175, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [177/420] Maria Eugenia Coronado Garcia → parent #12

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 176, 6, @base_agreement_id + 176, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 11, @base_agreement_id + 11, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [178/420] Jorge Enrique Zafra Ramirez → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 177, 6, @base_agreement_id + 177, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [179/420] Beatriz Lopez → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 178, 6, @base_agreement_id + 178, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [180/420] Maria Fernanda Obediente → parent #418

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 179, 6, @base_agreement_id + 179, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 417, @base_agreement_id + 417, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [181/420] Francisco Viloria → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 180, 6, @base_agreement_id + 180, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [182/420] Karla Gamarra → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 181, 6, @base_agreement_id + 181, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [183/420] Libe Pereira de Arriola → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 182, 6, @base_agreement_id + 182, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 8, @commercial_structure_id, @open_insurance_id, @open_insurance_agreement, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 6, @commercial_structure_id, @base_agent_id + 0, @base_agreement_id + 0, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 5, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 10, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 9, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 11, @commercial_structure_id, NULL, NULL, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 1;

SET @commercial_structure_id = @commercial_structure_id + 1;

-- [184/420] Carlos Alfredo Noguera Gil → parent #1

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 183, 6, @base_agreement_id + 183, NOW(), NOW());

INSERT INTO agency_level (id, type_id, commercial_structure_id, general_agent_id, agreement_id, created_at, updated_at)
VALUES (@agency_level_id, 7, @commercial_structure_id, @main_agency_id, @main_agency_agreement, NOW(), NOW());
