SET @agency_level_id = @agency_level_id + 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;

-- [185/420] Morella Garcia → 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 + 184, 6, @base_agreement_id + 184, 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;

-- [186/420] Federica Iturriza → 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 + 185, 6, @base_agreement_id + 185, 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;

-- [187/420] Maria Alejandra Arriaga → parent #89

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 186, 6, @base_agreement_id + 186, 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 + 88, @base_agreement_id + 88, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [188/420] Belkys Zuleta → 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 + 187, 6, @base_agreement_id + 187, 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;

-- [189/420] Pablo Luis Ramos Fuentes → 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 + 188, 6, @base_agreement_id + 188, 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;

-- [190/420] Luis Armando Cerezo 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 + 189, 6, @base_agreement_id + 189, 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;

-- [191/420] Claudia Blanco → 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 + 190, 6, @base_agreement_id + 190, 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;

-- [192/420] Maria Fernanda Zuluaga → 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 + 191, 6, @base_agreement_id + 191, 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;

-- [193/420] Mayerling Sayago → 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 + 192, 6, @base_agreement_id + 192, 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;

-- [194/420] Monica Finol Monica Finol → 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 + 193, 6, @base_agreement_id + 193, 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;

-- [195/420] Gabriela Pernetz → 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 + 194, 6, @base_agreement_id + 194, 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;

-- [196/420] Ricardo Angles Perez → 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 + 195, 6, @base_agreement_id + 195, 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;

-- [197/420] Belisa Vegas Castro

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 196, 6, @base_agreement_id + 196, 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;

-- [198/420] Diana Cordero → 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 + 197, 6, @base_agreement_id + 197, 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;

-- [199/420] Valenttina Fernandes

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 198, 6, @base_agreement_id + 198, 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;

-- [200/420] Jacqueline Marvez → 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 + 199, 6, @base_agreement_id + 199, 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;

-- [201/420] Luis Manuel Vargas Marcano → parent #170

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 200, 6, @base_agreement_id + 200, 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 + 169, @base_agreement_id + 169, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [202/420] Alains Figueroa Alains Figueroa → 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 + 201, 6, @base_agreement_id + 201, 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;

-- [203/420] Eliana Yanez Angel → 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 + 202, 6, @base_agreement_id + 202, 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;

-- [204/420] Alejandro Sandoval → 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 + 203, 6, @base_agreement_id + 203, 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;

-- [205/420] Domingo Morales → 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 + 204, 6, @base_agreement_id + 204, 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;

-- [206/420] Pedro Luis Tineo Marcano → 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 + 205, 6, @base_agreement_id + 205, 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;

-- [207/420] Rodolfo Vera Vera → 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 + 206, 6, @base_agreement_id + 206, 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;

-- [208/420] Damelys Dadiotis → 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 + 207, 6, @base_agreement_id + 207, 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;

-- [209/420] Carlos Scott → 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 + 208, 6, @base_agreement_id + 208, 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;

-- [210/420] Guillermo Schutte → 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 + 209, 6, @base_agreement_id + 209, 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;

-- [211/420] Mercedes Palacios → parent #204

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 210, 6, @base_agreement_id + 210, 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 + 203, @base_agreement_id + 203, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [212/420] Maria Carolina Vega Colina → 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 + 211, 6, @base_agreement_id + 211, 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;

-- [213/420] Noraima Colmenares → 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 + 212, 6, @base_agreement_id + 212, 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;

-- [214/420] Isabela Sequera → 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 + 213, 6, @base_agreement_id + 213, 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;

-- [215/420] Gustavo Bandes → 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 + 214, 6, @base_agreement_id + 214, 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;

-- [216/420] Cristian Milagro Guedez → 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 + 215, 6, @base_agreement_id + 215, 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;

-- [217/420] Regina Friedman → 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 + 216, 6, @base_agreement_id + 216, 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;

-- [218/420] Kira Kariakin → 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 + 217, 6, @base_agreement_id + 217, 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;

-- [219/420] Yasmin Mesa → 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 + 218, 6, @base_agreement_id + 218, 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;

-- [220/420] Yanubis Luc Yanubis Luc → 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 + 219, 6, @base_agreement_id + 219, 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;

-- [221/420] Maria Schutte

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 220, 6, @base_agreement_id + 220, 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;

-- [222/420] Corini Pantoja → parent #10

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 221, 6, @base_agreement_id + 221, 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 + 9, @base_agreement_id + 9, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [223/420] Gustavo Gomez

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 222, 6, @base_agreement_id + 222, 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;

-- [224/420] Mario Leon 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 + 223, 6, @base_agreement_id + 223, 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;

-- [225/420] Agustin Da Silva-Diaz → 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 + 224, 6, @base_agreement_id + 224, 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;

-- [226/420] Larry Padron → 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 + 225, 6, @base_agreement_id + 225, 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;

-- [227/420] Adrian Lopez De Aguiar → 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 + 226, 6, @base_agreement_id + 226, 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;

-- [228/420] Jose Uzcategui Amare → 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 + 227, 6, @base_agreement_id + 227, 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;

-- [229/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 + 228, 6, @base_agreement_id + 228, 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;

-- [230/420] Doris 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 + 229, 6, @base_agreement_id + 229, 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;

-- [231/420] Johann Gomez Sanchez → 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 + 230, 6, @base_agreement_id + 230, 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;

-- [232/420] Valerie Obregon Aguilera → 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 + 231, 6, @base_agreement_id + 231, 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;

-- [233/420] Ivan Vezga → parent #29

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 232, 6, @base_agreement_id + 232, 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 + 28, @base_agreement_id + 28, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [234/420] Fernando Vera Useche → 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 + 233, 6, @base_agreement_id + 233, 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;

-- [235/420] Elimar Hung Nieves → 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 + 234, 6, @base_agreement_id + 234, 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;

-- [236/420] Fabiola Tejada → parent #60

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 235, 6, @base_agreement_id + 235, 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 + 59, @base_agreement_id + 59, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [237/420] Patricia Arriete V. → parent #13

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 236, 6, @base_agreement_id + 236, 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 + 12, @base_agreement_id + 12, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [238/420] Luz Tarborda B. → parent #13

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 237, 6, @base_agreement_id + 237, 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 + 12, @base_agreement_id + 12, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [239/420] Maria Mineses Contreras → parent #13

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 238, 6, @base_agreement_id + 238, 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 + 12, @base_agreement_id + 12, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [240/420] Jorge Chacon L → 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 + 239, 6, @base_agreement_id + 239, 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;

-- [241/420] Andrea Leon → 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 + 240, 6, @base_agreement_id + 240, 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;

-- [242/420] Claudia De Urdaneta → parent #47

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 241, 6, @base_agreement_id + 241, 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 + 46, @base_agreement_id + 46, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [243/420] Juan Mila de la 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 + 242, 6, @base_agreement_id + 242, 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;

-- [244/420] Jorge Ojeda → 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 + 243, 6, @base_agreement_id + 243, 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;

-- [245/420] Ricardo Gomez Otto → 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 + 244, 6, @base_agreement_id + 244, 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;

-- [246/420] Maribel Briceno → parent #59

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 245, 6, @base_agreement_id + 245, 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 + 58, @base_agreement_id + 58, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [247/420] Ginett Luces → 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 + 246, 6, @base_agreement_id + 246, 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;

-- [248/420] Juan Targa → 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 + 247, 6, @base_agreement_id + 247, 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;

-- [249/420] Jose Narvaez → 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 + 248, 6, @base_agreement_id + 248, 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;

-- [250/420] Nerio Socorro → parent #39

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 249, 6, @base_agreement_id + 249, 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 + 38, @base_agreement_id + 38, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [251/420] Cecilio Rodriguez → parent #39

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 250, 6, @base_agreement_id + 250, 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 + 38, @base_agreement_id + 38, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [252/420] Tannya Lisseth Sierra Quiroga → 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 + 251, 6, @base_agreement_id + 251, 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;

-- [253/420] Lisbeth Josefina Seijas Pineda → 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 + 252, 6, @base_agreement_id + 252, 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;

-- [254/420] Jacqueline Bali Jacqueline Bali → 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 + 253, 6, @base_agreement_id + 253, 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;

-- [255/420] MARIELYS SEMPRUN → parent #39

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 254, 6, @base_agreement_id + 254, 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 + 38, @base_agreement_id + 38, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [256/420] Maria Jose Couri Araujo → 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 + 255, 6, @base_agreement_id + 255, 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;

-- [257/420] Oscar Freites → parent #59

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 256, 6, @base_agreement_id + 256, 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 + 58, @base_agreement_id + 58, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [258/420] Guido Pena → 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 + 257, 6, @base_agreement_id + 257, 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;

-- [259/420] Maria Gracia Cruz

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 258, 6, @base_agreement_id + 258, 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;

-- [260/420] Cesareo Belsol

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 259, 6, @base_agreement_id + 259, 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;

-- [261/420] Ana Isabel 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 + 260, 6, @base_agreement_id + 260, 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;

-- [262/420] Jorge Villamizar → 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 + 261, 6, @base_agreement_id + 261, 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;

-- [263/420] MARIA TERESA RIVAS

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 262, 6, @base_agreement_id + 262, 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;

-- [264/420] Cesar Hulett → 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 + 263, 6, @base_agreement_id + 263, 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;

-- [265/420] Maria Elvia Becerra Maria Elvia Becerra → parent #39

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 264, 6, @base_agreement_id + 264, 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 + 38, @base_agreement_id + 38, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [266/420] Kassandra Fagundez → 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 + 265, 6, @base_agreement_id + 265, 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;

-- [267/420] Julian Gonzalez Balbo → 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 + 266, 6, @base_agreement_id + 266, 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;

-- [268/420] Omar Alfredo Gutierrez Guerrero Gutierrez Guerrero → 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 + 267, 6, @base_agreement_id + 267, 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;

-- [269/420] Ignacio Jaramillo Abondano → 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 + 268, 6, @base_agreement_id + 268, 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;

-- [270/420] Adolfo Cumana → parent #59

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 269, 6, @base_agreement_id + 269, 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 + 58, @base_agreement_id + 58, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [271/420] Kenic Narvarro → 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 + 270, 6, @base_agreement_id + 270, 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;

-- [272/420] Carlos Montero → 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 + 271, 6, @base_agreement_id + 271, 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;

-- [273/420] Jesus Ugas → 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 + 272, 6, @base_agreement_id + 272, 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;

-- [274/420] Karelia Gomez Martinez → 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 + 273, 6, @base_agreement_id + 273, 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;

-- [275/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 + 274, 6, @base_agreement_id + 274, 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;

-- [276/420] Maria Alejandra Tovar Ojeda → 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 + 275, 6, @base_agreement_id + 275, 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;

-- [277/420] Maria Idalina Rodriguez Rodriguez → 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 + 276, 6, @base_agreement_id + 276, 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;

-- [278/420] Gabriella Lopez → 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 + 277, 6, @base_agreement_id + 277, 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;

-- [279/420] Roberto Aldecoa → 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 + 278, 6, @base_agreement_id + 278, 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;

-- [280/420] Miguel Pasquariello → parent #59

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 279, 6, @base_agreement_id + 279, 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 + 58, @base_agreement_id + 58, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [281/420] Pascual Miguel Quagliano → parent #59

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 280, 6, @base_agreement_id + 280, 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 + 58, @base_agreement_id + 58, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [282/420] Heremar Mercedes Morales Daal

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 281, 6, @base_agreement_id + 281, 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;

-- [283/420] Maria Carolina Crespo 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 + 282, 6, @base_agreement_id + 282, 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;

-- [284/420] Hector Alfredo Reyes Franco

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 283, 6, @base_agreement_id + 283, 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;

-- [285/420] Evelyn Josefina Rondon Benaim

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 284, 6, @base_agreement_id + 284, 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;

-- [286/420] Marianne Delgado → 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 + 285, 6, @base_agreement_id + 285, 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;

-- [287/420] Gustavo Bergstrom → 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 + 286, 6, @base_agreement_id + 286, 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;

-- [288/420] Gladys Moros Nieto

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 287, 6, @base_agreement_id + 287, 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;

-- [289/420] Giovanni Rossomando de la Rosa → 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 + 288, 6, @base_agreement_id + 288, 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;

-- [290/420] Enzo Isaias Herrera Fernandez → 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 + 289, 6, @base_agreement_id + 289, 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;

-- [291/420] ROBERTO BAEZ DUARTE → 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 + 290, 6, @base_agreement_id + 290, 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;

-- [292/420] Alejandro Osorio → 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 + 291, 6, @base_agreement_id + 291, 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;

-- [293/420] Marelvis Coraspe → 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 + 292, 6, @base_agreement_id + 292, 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;

-- [294/420] Jose Manuel Galanton Hernandez → 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 + 293, 6, @base_agreement_id + 293, 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;

-- [295/420] Ivan Gonima → 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 + 294, 6, @base_agreement_id + 294, 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;

-- [296/420] Oswaldo Prada → 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 + 295, 6, @base_agreement_id + 295, 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;

-- [297/420] Alfredo Osiglia → 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 + 296, 6, @base_agreement_id + 296, 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;

-- [298/420] MARYOLEY CAROLINA VIVAS 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 + 297, 6, @base_agreement_id + 297, 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;

-- [299/420] LIZZET RICCARDI → 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 + 298, 6, @base_agreement_id + 298, 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;

-- [300/420] Nathaly Rojas Aguilera → 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 + 299, 6, @base_agreement_id + 299, 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;

-- [301/420] Wilson Molina Sanguino → 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 + 300, 6, @base_agreement_id + 300, 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;

-- [302/420] Jon Olabeaga Urresti → 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 + 301, 6, @base_agreement_id + 301, 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;

-- [303/420] Oswaldo Figueroa → 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 + 302, 6, @base_agreement_id + 302, 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;

-- [304/420] German Villarreal → 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 + 303, 6, @base_agreement_id + 303, 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;

-- [305/420] John Nathan Marin 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 + 304, 6, @base_agreement_id + 304, 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;

-- [306/420] Dainazet Robespierre → 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 + 305, 6, @base_agreement_id + 305, 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;

-- [307/420] Tomas Andara → 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 + 306, 6, @base_agreement_id + 306, 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;

-- [308/420] Lenis Silva → 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 + 307, 6, @base_agreement_id + 307, 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;

-- [309/420] Bernardo Rodriguez → 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 + 308, 6, @base_agreement_id + 308, 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;

-- [310/420] Carlos Tagliaferro → 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 + 309, 6, @base_agreement_id + 309, 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;

-- [311/420] Antonio Jose Osorio Sifontes → 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 + 310, 6, @base_agreement_id + 310, 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;

-- [312/420] Beatriz Gabriela Arias Petit → 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 + 311, 6, @base_agreement_id + 311, 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;

-- [313/420] Castor Fernandez 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 + 312, 6, @base_agreement_id + 312, 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;

-- [314/420] Jesus Rodrigues

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 313, 6, @base_agreement_id + 313, 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;

-- [315/420] Rocco Nardulli → 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 + 314, 6, @base_agreement_id + 314, 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;

-- [316/420] Excellence Asesores CA → 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 + 315, 6, @base_agreement_id + 315, 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;

-- [317/420] Luisa Viso → 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 + 316, 6, @base_agreement_id + 316, 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;

-- [318/420] Elizabeth Johnson

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 317, 6, @base_agreement_id + 317, 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;

-- [319/420] Audry 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 + 318, 6, @base_agreement_id + 318, 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;

-- [320/420] Cristobal Alvelo → 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 + 319, 6, @base_agreement_id + 319, 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;

-- [321/420] Marlene Fernandez → 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 + 320, 6, @base_agreement_id + 320, 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;

-- [322/420] Ambar Arredondo → 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 + 321, 6, @base_agreement_id + 321, 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;

-- [323/420] ELVIA 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 + 322, 6, @base_agreement_id + 322, 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;

-- [324/420] Olga Herrera → 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 + 323, 6, @base_agreement_id + 323, 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;

-- [325/420] kristen Pena → 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 + 324, 6, @base_agreement_id + 324, 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;

-- [326/420] Johnny Paz → 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 + 325, 6, @base_agreement_id + 325, 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;

-- [327/420] Jhoanna Querales → 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 + 326, 6, @base_agreement_id + 326, 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;

-- [328/420] Ariadna Quroz → 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 + 327, 6, @base_agreement_id + 327, 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;

-- [329/420] Marycarmen Hurtado → 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 + 328, 6, @base_agreement_id + 328, 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;

-- [330/420] Rosangela 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 + 329, 6, @base_agreement_id + 329, 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;

-- [331/420] Elisa Baez → parent #130

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 330, 6, @base_agreement_id + 330, 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 + 129, @base_agreement_id + 129, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [332/420] Erick Oropeza → 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 + 331, 6, @base_agreement_id + 331, 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;

-- [333/420] Andreyna Molla → 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 + 332, 6, @base_agreement_id + 332, 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;

-- [334/420] Gisel Morillo → 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 + 333, 6, @base_agreement_id + 333, 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;

-- [335/420] Mariangie Reverol → 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 + 334, 6, @base_agreement_id + 334, 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;

-- [336/420] Mariangie Reverol → 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 + 335, 6, @base_agreement_id + 335, 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;

-- [337/420] ANTONIO SIFONTES → 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 + 336, 6, @base_agreement_id + 336, 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;

-- [338/420] Maria Arenas → 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 + 337, 6, @base_agreement_id + 337, 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;

-- [339/420] Joselyn Aguilar → 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 + 338, 6, @base_agreement_id + 338, 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;

-- [340/420] Anabella 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 + 339, 6, @base_agreement_id + 339, 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;

-- [341/420] Patricia Gil Porto → 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 + 340, 6, @base_agreement_id + 340, 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;

-- [342/420] Marys 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 + 341, 6, @base_agreement_id + 341, 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;

-- [343/420] Johana 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 + 342, 6, @base_agreement_id + 342, 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;

-- [344/420] Vicente Emilio Alvarez Jimenez → 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 + 343, 6, @base_agreement_id + 343, 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;

-- [345/420] ELIZBETH MARTORELLI → 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 + 344, 6, @base_agreement_id + 344, 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;

-- [346/420] Liseth Segovia → 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 + 345, 6, @base_agreement_id + 345, 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;

-- [347/420] Paulo Tabares Ramirez → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 346, 6, @base_agreement_id + 346, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [348/420] Elena Socorro Flores → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 347, 6, @base_agreement_id + 347, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [349/420] Jenny VivasVasquez → 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 + 348, 6, @base_agreement_id + 348, 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;

-- [350/420] Mabelis Del Valle Suarez Viloria → parent #361

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 349, 6, @base_agreement_id + 349, 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 + 360, @base_agreement_id + 360, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [351/420] Anibal Valero

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 350, 6, @base_agreement_id + 350, 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;

-- [352/420] Antonio Guruceaga

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 351, 6, @base_agreement_id + 351, 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;

-- [353/420] Claudia Diaz Picon → parent #135

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 352, 6, @base_agreement_id + 352, 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 + 134, @base_agreement_id + 134, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [354/420] Larissa Pinto Pina → parent #363

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 353, 6, @base_agreement_id + 353, 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 + 362, @base_agreement_id + 362, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [355/420] DANIELLA NAVA RUBIANO → parent #363

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 354, 6, @base_agreement_id + 354, 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 + 362, @base_agreement_id + 362, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [356/420] THAIS DELGADO → parent #363

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 355, 6, @base_agreement_id + 355, 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 + 362, @base_agreement_id + 362, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [357/420] Pablo Martinez-Acero

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 356, 6, @base_agreement_id + 356, 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;

-- [358/420] Claudia Tosta Vargas

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 357, 6, @base_agreement_id + 357, 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;

-- [359/420] Aitza Medina

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 358, 6, @base_agreement_id + 358, 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;

-- [360/420] Veronica Camacho

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 359, 6, @base_agreement_id + 359, 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;

-- [361/420] Bianeys Barreto Centeno → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 360, 6, @base_agreement_id + 360, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [362/420] Fernando Zuleta → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 361, 6, @base_agreement_id + 361, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [363/420] Maria Rubiano → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 362, 6, @base_agreement_id + 362, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [364/420] Rosalyn Fonseca → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 363, 6, @base_agreement_id + 363, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [365/420] Veronica Suarez → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 364, 6, @base_agreement_id + 364, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [366/420] Manuel De Pablos Barboza → parent #363

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 365, 6, @base_agreement_id + 365, 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 + 362, @base_agreement_id + 362, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [367/420] Maria Isolina Martinez → parent #363

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 366, 6, @base_agreement_id + 366, 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 + 362, @base_agreement_id + 362, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [368/420] Yeraldit Barreto → parent #361

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 367, 6, @base_agreement_id + 367, 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 + 360, @base_agreement_id + 360, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [369/420] Rafael Antonio Jimenez Gonzalez → parent #361

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 368, 6, @base_agreement_id + 368, 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 + 360, @base_agreement_id + 360, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [370/420] ALLYSON HERNANDO ALCON

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 369, 6, @base_agreement_id + 369, 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;

-- [371/420] AMERICA CLORINDA BECK RODRIGUEZ → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 370, 6, @base_agreement_id + 370, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [372/420] Ramon Cabrera

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 371, 6, @base_agreement_id + 371, 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;

-- [373/420] ana rodriguez → 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 + 372, 6, @base_agreement_id + 372, 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;

-- [374/420] Dacio 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 + 373, 6, @base_agreement_id + 373, 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;

-- [375/420] Jeanette Garcia

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 374, 6, @base_agreement_id + 374, 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;

-- [376/420] Carlos Garcia Romero

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 375, 6, @base_agreement_id + 375, 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;

-- [377/420] Raiza Marlene Villegas → 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 + 376, 6, @base_agreement_id + 376, 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;

-- [378/420] Vanessa Rendón → 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 + 377, 6, @base_agreement_id + 377, 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;

-- [379/420] Rodolfo Montero → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 378, 6, @base_agreement_id + 378, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [380/420] Tamara Gonzalez → 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 + 379, 6, @base_agreement_id + 379, 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;

-- [381/420] Vanessa Rendón → 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 + 380, 6, @base_agreement_id + 380, 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;

-- [382/420] Maria Vasquez

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 381, 6, @base_agreement_id + 381, 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;

-- [383/420] Rosa Prado → 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 + 382, 6, @base_agreement_id + 382, 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;

-- [384/420] Tahiruma Colina → 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 + 383, 6, @base_agreement_id + 383, 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;

-- [385/420] CARLA VIRGINIA GUTIERREZ SOCORRO → parent #348

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 384, 6, @base_agreement_id + 384, 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 + 347, @base_agreement_id + 347, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [386/420] LUZ MALDONADO → parent #348

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 385, 6, @base_agreement_id + 385, 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 + 347, @base_agreement_id + 347, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [387/420] MARIA BETHINA SARCOS → parent #348

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 386, 6, @base_agreement_id + 386, 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 + 347, @base_agreement_id + 347, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [388/420] Nancy Almanzar → 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 + 387, 6, @base_agreement_id + 387, 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;

-- [389/420] Lidiana Fernandez → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 388, 6, @base_agreement_id + 388, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [390/420] Liz Perozo → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 389, 6, @base_agreement_id + 389, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [391/420] Amir Asaff → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 390, 6, @base_agreement_id + 390, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [392/420] Javier Garcia → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 391, 6, @base_agreement_id + 391, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [393/420] Douglas Gonzalez → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 392, 6, @base_agreement_id + 392, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [394/420] Marielina Herrera → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 393, 6, @base_agreement_id + 393, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [395/420] Fabiana Pacheco → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 394, 6, @base_agreement_id + 394, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [396/420] Miguel Indavec → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 395, 6, @base_agreement_id + 395, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [397/420] Estepfanny Castillo → parent #346

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 396, 6, @base_agreement_id + 396, 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 + 345, @base_agreement_id + 345, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [398/420] Rebeca Oxford de Yrureta → 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 + 397, 6, @base_agreement_id + 397, 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;

-- [399/420] SAMIR GHANNOUM HITTI → parent #23

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 398, 6, @base_agreement_id + 398, 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 + 22, @base_agreement_id + 22, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [400/420] Naskary Granadillo → 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 + 399, 6, @base_agreement_id + 399, 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;

-- [401/420] Alfredo Carrillo → 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 + 400, 6, @base_agreement_id + 400, 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;

-- [402/420] JOEL 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 + 401, 6, @base_agreement_id + 401, 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;

-- [403/420] Maria Milagros 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 + 402, 6, @base_agreement_id + 402, 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;

-- [404/420] Milagros Valladares de Figueira → 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 + 403, 6, @base_agreement_id + 403, 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;

-- [405/420] Francis Restrepo → 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 + 404, 6, @base_agreement_id + 404, 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;

-- [406/420] Natasha Gabriela Prince Quero → 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 + 405, 6, @base_agreement_id + 405, 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;

-- [407/420] Hector Jose Ramirez Bravo → 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 + 406, 6, @base_agreement_id + 406, 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;

-- [408/420] Paolo Hamann → parent #11

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 407, 6, @base_agreement_id + 407, 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 + 10, @base_agreement_id + 10, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [409/420] ROMAN ARTURO ROMERO MEZA → 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 + 408, 6, @base_agreement_id + 408, 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;

-- [410/420] Silvia E. Bukowitz → 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 + 409, 6, @base_agreement_id + 409, 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;

-- [411/420] Johana Andrade → 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 + 410, 6, @base_agreement_id + 410, 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;

-- [412/420] Ernesto Martinez → 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 + 411, 6, @base_agreement_id + 411, 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;

-- [413/420] Beatriz Leon

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 412, 6, @base_agreement_id + 412, 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;

-- [414/420] Pedro Chavez → parent #290

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 413, 6, @base_agreement_id + 413, 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 + 289, @base_agreement_id + 289, NOW(), NOW());
SET @agency_level_id = @agency_level_id + 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;

-- [415/420] Liliana Rodriguez → 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 + 414, 6, @base_agreement_id + 414, 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;

-- [416/420] GISELA PEREZ GOMES

INSERT INTO commercial_structure (id, general_agent_id, agent_level_id, agreement_id, created_at, updated_at)
VALUES (@commercial_structure_id, @base_agent_id + 415, 6, @base_agreement_id + 415, 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;

-- [417/420] Ibrahim 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 + 416, 6, @base_agreement_id + 416, 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;

-- [418/420] Alfredo 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 + 417, 6, @base_agreement_id + 417, 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;

-- [419/420] Fernando Contreras → 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 + 418, 6, @base_agreement_id + 418, 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;

-- [420/420] Eduardo Acosta Barreto → 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 + 419, 6, @base_agreement_id + 419, 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;

-- ========================================
-- ACTUALIZAR REFERENCIAS INVERSAS
-- ========================================

UPDATE agreement a
INNER JOIN commercial_structure cs ON cs.agreement_id = a.id AND cs.general_agent_id = a.agent_id
SET a.commercial_structure_id = cs.id
WHERE a.agent_id >= @base_agent_id
  AND a.agent_id <= (@base_agent_id + 419);