-- Foodlinkk 038: Wereldexport — Europa, Midden-Oosten, Afrika, Amerika

INSERT INTO export_regions (code, name_nl, name_en, sort_order) VALUES ('middle_east', 'Midden-Oosten', 'Middle East', 25) ON CONFLICT (code) DO NOTHING;
UPDATE export_territories SET sync_priority = 2 WHERE country_iso2 IN ('TR', 'MA', 'MY', 'ID', 'AU') AND sync_priority > 2;

INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ie', 'IE', 'europe', 'Ierland', 'Ireland', 53.4, -8.0, 7, '[51.4, -10.5, 55.4, -5.5]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('pt', 'PT', 'europe', 'Portugal', 'Portugal', 39.5, -8.0, 6, '[36.9, -9.5, 42.2, -6.2]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('gr', 'GR', 'europe', 'Griekenland', 'Greece', 39.0, 22.0, 6, '[34.8, 19.4, 41.8, 29.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('cz', 'CZ', 'europe', 'Tsjechië', 'Czechia', 49.8, 15.5, 7, '[48.5, 12.1, 51.1, 18.9]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('sk', 'SK', 'europe', 'Slowakije', 'Slovakia', 48.7, 19.5, 7, '[47.7, 16.8, 49.6, 22.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('hu', 'HU', 'europe', 'Hongarije', 'Hungary', 47.2, 19.5, 7, '[45.7, 16.1, 48.6, 22.9]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ro', 'RO', 'europe', 'Roemenië', 'Romania', 45.9, 25.0, 6, '[43.6, 20.3, 48.3, 29.7]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('bg', 'BG', 'europe', 'Bulgarije', 'Bulgaria', 42.7, 25.5, 7, '[41.2, 22.4, 44.2, 28.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('hr', 'HR', 'europe', 'Kroatië', 'Croatia', 45.1, 15.2, 7, '[42.4, 13.5, 46.5, 19.4]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('si', 'SI', 'europe', 'Slovenië', 'Slovenia', 46.1, 14.8, 8, '[45.4, 13.4, 46.9, 16.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('fi', 'FI', 'europe', 'Finland', 'Finland', 64.0, 26.0, 5, '[59.8, 20.6, 70.1, 31.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ee', 'EE', 'europe', 'Estland', 'Estonia', 58.6, 25.0, 7, '[57.5, 21.8, 59.7, 28.2]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('lv', 'LV', 'europe', 'Letland', 'Latvia', 56.9, 24.6, 7, '[55.7, 21.0, 58.1, 28.2]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('lt', 'LT', 'europe', 'Litouwen', 'Lithuania', 55.2, 23.9, 7, '[53.9, 21.0, 56.4, 26.8]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('lu', 'LU', 'europe', 'Luxemburg', 'Luxembourg', 49.8, 6.1, 9, '[49.4, 5.7, 50.2, 6.5]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('mt', 'MT', 'europe', 'Malta', 'Malta', 35.9, 14.4, 10, '[35.8, 14.2, 36.1, 14.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('cy', 'CY', 'europe', 'Cyprus', 'Cyprus', 35.1, 33.4, 9, '[34.6, 32.3, 35.7, 34.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ua', 'UA', 'europe', 'Oekraïne', 'Ukraine', 48.4, 31.2, 5, '[44.4, 22.1, 52.4, 40.2]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('rs', 'RS', 'europe', 'Servië', 'Serbia', 44.0, 21.0, 7, '[42.2, 18.8, 46.2, 23.0]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ba', 'BA', 'europe', 'Bosnië', 'Bosnia', 44.0, 17.7, 7, '[42.6, 15.7, 45.3, 19.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('mk', 'MK', 'europe', 'Noord-Macedonië', 'North Macedonia', 41.6, 21.7, 8, '[40.8, 20.5, 42.4, 23.0]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('al', 'AL', 'europe', 'Albanië', 'Albania', 41.2, 20.2, 8, '[39.6, 19.3, 42.7, 21.1]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('me', 'ME', 'europe', 'Montenegro', 'Montenegro', 42.7, 19.4, 8, '[41.8, 18.4, 43.6, 20.4]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('md', 'MD', 'europe', 'Moldavië', 'Moldova', 47.0, 28.8, 7, '[45.5, 26.6, 48.5, 30.2]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('is', 'IS', 'europe', 'IJsland', 'Iceland', 64.9, -19.0, 6, '[63.3, -24.5, 66.5, -13.5]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('li', 'LI', 'europe', 'Liechtenstein', 'Liechtenstein', 47.1, 9.5, 10, '[47.0, 9.5, 47.3, 9.7]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('il', 'IL', 'middle_east', 'Israël', 'Israel', 31.5, 34.9, 7, '[29.5, 34.3, 33.3, 35.9]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('eg', 'EG', 'middle_east', 'Egypte', 'Egypt', 26.8, 30.8, 5, '[22.0, 25.0, 31.7, 35.0]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('jo', 'JO', 'middle_east', 'Jordanië', 'Jordan', 31.2, 36.8, 7, '[29.2, 34.9, 33.4, 39.3]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('lb', 'LB', 'middle_east', 'Libanon', 'Lebanon', 33.9, 35.9, 8, '[33.1, 35.1, 34.7, 36.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('iq', 'IQ', 'middle_east', 'Irak', 'Iraq', 33.2, 43.7, 6, '[29.1, 38.8, 37.4, 48.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ir', 'IR', 'middle_east', 'Iran', 'Iran', 32.4, 53.7, 5, '[25.0, 44.0, 39.8, 63.3]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ye', 'YE', 'middle_east', 'Jemen', 'Yemen', 15.6, 48.0, 6, '[12.1, 42.5, 19.0, 54.5]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ps', 'PS', 'middle_east', 'Palestina', 'Palestine', 31.9, 35.2, 8, '[31.2, 34.2, 32.6, 35.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('sy', 'SY', 'middle_east', 'Syrië', 'Syria', 35.0, 38.5, 6, '[32.3, 35.7, 37.3, 42.4]'::jsonb, 3) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ly', 'LY', 'middle_east', 'Libië', 'Libya', 26.3, 17.2, 5, '[19.5, 9.3, 33.2, 25.2]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('tn', 'TN', 'middle_east', 'Tunesië', 'Tunisia', 34.0, 9.5, 6, '[30.2, 7.5, 37.5, 11.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('dz', 'DZ', 'africa', 'Algerije', 'Algeria', 28.0, 2.6, 5, '[19.0, -8.7, 37.1, 12.0]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('za', 'ZA', 'africa', 'Zuid-Afrika', 'South Africa', -30.6, 22.9, 5, '[-34.8, 16.5, -22.1, 32.9]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ng', 'NG', 'africa', 'Nigeria', 'Nigeria', 9.1, 8.7, 6, '[4.3, 2.7, 13.9, 14.7]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ke', 'KE', 'africa', 'Kenia', 'Kenya', -0.02, 37.9, 6, '[-4.7, 33.9, 5.0, 41.9]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('gh', 'GH', 'africa', 'Ghana', 'Ghana', 7.9, -1.0, 6, '[4.7, -3.3, 11.2, 1.2]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('et', 'ET', 'africa', 'Ethiopië', 'Ethiopia', 9.1, 40.5, 5, '[3.4, 33.0, 14.9, 48.0]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('tz', 'TZ', 'africa', 'Tanzania', 'Tanzania', -6.4, 34.9, 6, '[-11.7, 29.3, -0.99, 40.5]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ug', 'UG', 'africa', 'Oeganda', 'Uganda', 1.4, 32.3, 7, '[-1.5, 29.6, 4.2, 35.0]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('sn', 'SN', 'africa', 'Senegal', 'Senegal', 14.5, -14.5, 7, '[12.3, -17.5, 16.7, -11.4]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ci', 'CI', 'africa', 'Ivoorkust', 'Côte d''Ivoire', 7.5, -5.5, 6, '[4.4, -8.6, 10.7, -2.5]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('cm', 'CM', 'africa', 'Kameroen', 'Cameroon', 6.6, 12.4, 6, '[1.7, 8.5, 13.1, 16.2]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ao', 'AO', 'africa', 'Angola', 'Angola', -11.2, 17.9, 5, '[-18.0, 11.7, -4.4, 24.1]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('mz', 'MZ', 'africa', 'Mozambique', 'Mozambique', -18.7, 35.5, 5, '[-26.9, 30.2, -10.5, 40.8]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('zw', 'ZW', 'africa', 'Zimbabwe', 'Zimbabwe', -19.0, 29.2, 6, '[-22.4, 25.2, -15.6, 33.1]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('zm', 'ZM', 'africa', 'Zambia', 'Zambia', -13.1, 27.8, 6, '[-18.1, 22.0, -8.2, 33.7]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('rw', 'RW', 'africa', 'Rwanda', 'Rwanda', -1.9, 30.0, 8, '[-2.8, 28.9, -1.0, 30.9]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('sd', 'SD', 'africa', 'Soedan', 'Sudan', 15.5, 30.2, 5, '[8.7, 21.8, 22.2, 38.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ss', 'SS', 'africa', 'Zuid-Soedan', 'South Sudan', 7.9, 30.0, 6, '[3.5, 23.9, 12.2, 35.9]'::jsonb, 3) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('cd', 'CD', 'africa', 'Congo (DRC)', 'DR Congo', -4.0, 21.8, 5, '[-13.5, 12.2, 5.4, 31.3]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('cg', 'CG', 'africa', 'Congo', 'Congo', -0.7, 15.3, 6, '[-5.0, 11.2, 3.7, 18.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('bf', 'BF', 'africa', 'Burkina Faso', 'Burkina Faso', 12.2, -1.6, 6, '[9.4, -5.5, 15.1, 2.4]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ml', 'ML', 'africa', 'Mali', 'Mali', 17.6, -4.0, 5, '[10.1, -12.2, 25.0, 4.3]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ne', 'NE', 'africa', 'Niger', 'Niger', 17.6, 8.1, 5, '[11.7, 0.2, 23.5, 16.0]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('td', 'TD', 'africa', 'Tsjaad', 'Chad', 15.5, 18.7, 5, '[7.4, 13.5, 23.5, 24.0]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('so', 'SO', 'africa', 'Somalië', 'Somalia', 5.2, 46.2, 5, '[-1.7, 41.0, 12.0, 51.4]'::jsonb, 3) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('mg', 'MG', 'africa', 'Madagascar', 'Madagascar', -18.8, 46.9, 5, '[-25.6, 43.2, -11.9, 50.5]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('mu', 'MU', 'africa', 'Mauritius', 'Mauritius', -20.3, 57.6, 9, '[-20.5, 57.3, -19.9, 63.5]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('na', 'NA', 'africa', 'Namibië', 'Namibia', -22.6, 17.1, 5, '[-28.0, 11.7, -16.9, 25.3]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('bw', 'BW', 'africa', 'Botswana', 'Botswana', -22.3, 24.7, 6, '[-26.9, 20.0, -17.8, 29.4]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ga', 'GA', 'africa', 'Gabon', 'Gabon', -0.8, 11.6, 6, '[-4.0, 8.7, 2.3, 14.5]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('gn', 'GN', 'africa', 'Guinee', 'Guinea', 9.9, -11.7, 6, '[7.2, -15.1, 12.7, -7.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('bj', 'BJ', 'africa', 'Benin', 'Benin', 9.3, 2.3, 7, '[6.2, 0.8, 12.4, 3.9]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('tg', 'TG', 'africa', 'Togo', 'Togo', 8.6, 1.0, 7, '[6.1, -0.1, 11.1, 1.8]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('lr', 'LR', 'africa', 'Liberia', 'Liberia', 6.4, -9.4, 7, '[4.3, -11.5, 8.6, -7.4]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('sl', 'SL', 'africa', 'Sierra Leone', 'Sierra Leone', 8.5, -11.8, 7, '[6.9, -13.3, 10.0, -10.3]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('mr', 'MR', 'africa', 'Mauritanië', 'Mauritania', 21.0, -10.9, 5, '[14.7, -17.1, 27.3, -4.8]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('er', 'ER', 'africa', 'Eritrea', 'Eritrea', 15.2, 39.8, 7, '[12.4, 36.4, 18.0, 43.1]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('dj', 'DJ', 'africa', 'Djibouti', 'Djibouti', 11.8, 42.6, 8, '[10.9, 41.8, 12.7, 43.4]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('mw', 'MW', 'africa', 'Malawi', 'Malawi', -13.3, 34.3, 7, '[-17.1, 32.7, -9.4, 35.9]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ls', 'LS', 'africa', 'Lesotho', 'Lesotho', -29.6, 28.2, 8, '[-30.7, 27.0, -28.6, 29.5]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('sz', 'SZ', 'africa', 'Eswatini', 'Eswatini', -26.5, 31.5, 8, '[-27.3, 30.8, -25.7, 32.1]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('cv', 'CV', 'africa', 'Kaapverdië', 'Cape Verde', 16.0, -24.0, 8, '[14.8, -25.4, 17.2, -22.7]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('gq', 'GQ', 'africa', 'Equatoriaal-Guinea', 'Equatorial Guinea', 1.7, 10.3, 8, '[0.9, 9.3, 3.8, 11.3]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('st', 'ST', 'africa', 'São Tomé', 'São Tomé', 0.3, 6.6, 9, '[0.0, 6.5, 1.7, 7.5]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('sc', 'SC', 'africa', 'Seychellen', 'Seychelles', -4.7, 55.5, 9, '[-10.0, 46.0, -3.7, 56.3]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('km', 'KM', 'africa', 'Comoren', 'Comoros', -11.9, 43.9, 9, '[-12.4, 43.2, -11.4, 44.5]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('bi', 'BI', 'africa', 'Burundi', 'Burundi', -3.4, 29.9, 8, '[-4.5, 29.0, -2.3, 30.8]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('cf', 'CF', 'africa', 'Centraal-Afrika', 'Central African Rep.', 6.6, 20.9, 6, '[2.2, 14.4, 11.0, 27.5]'::jsonb, 3) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('gm', 'GM', 'africa', 'Gambia', 'Gambia', 13.4, -15.3, 8, '[13.1, -16.8, 13.8, -13.8]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('gw', 'GW', 'africa', 'Guinee-Bissau', 'Guinea-Bissau', 11.8, -15.2, 8, '[10.9, -16.7, 12.7, -13.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ca', 'CA', 'americas', 'Canada', 'Canada', 56.1, -96.8, 4, '[41.7, -141.0, 83.1, -52.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('mx', 'MX', 'americas', 'Mexico', 'Mexico', 23.6, -102.6, 5, '[14.5, -118.4, 32.7, -86.7]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('br', 'BR', 'americas', 'Brazilië', 'Brazil', -14.2, -51.9, 4, '[-33.8, -73.9, 5.3, -34.8]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ar', 'AR', 'americas', 'Argentinië', 'Argentina', -38.4, -63.6, 4, '[-55.1, -73.6, -21.8, -53.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('co', 'CO', 'americas', 'Colombia', 'Colombia', 4.6, -74.3, 5, '[-4.2, -79.0, 12.5, -66.9]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('cl', 'CL', 'americas', 'Chili', 'Chile', -35.7, -71.5, 4, '[-55.9, -75.6, -17.5, -66.4]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('pe', 'PE', 'americas', 'Peru', 'Peru', -9.2, -75.0, 5, '[-18.3, -81.3, -0.0, -68.7]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ve', 'VE', 'americas', 'Venezuela', 'Venezuela', 6.4, -66.6, 5, '[0.6, -73.4, 12.2, -59.8]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ec', 'EC', 'americas', 'Ecuador', 'Ecuador', -1.8, -78.2, 6, '[-5.0, -81.1, 1.5, -75.2]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('bo', 'BO', 'americas', 'Bolivia', 'Bolivia', -16.3, -63.6, 5, '[-22.9, -69.6, -9.7, -57.5]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('py', 'PY', 'americas', 'Paraguay', 'Paraguay', -23.4, -58.4, 6, '[-27.6, -62.6, -19.3, -54.3]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('uy', 'UY', 'americas', 'Uruguay', 'Uruguay', -32.5, -55.8, 7, '[-35.0, -58.4, -30.1, -53.1]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('gt', 'GT', 'americas', 'Guatemala', 'Guatemala', 15.8, -90.2, 7, '[13.7, -92.2, 17.8, -88.2]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('hn', 'HN', 'americas', 'Honduras', 'Honduras', 14.6, -86.2, 7, '[12.9, -89.4, 16.5, -83.1]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('sv', 'SV', 'americas', 'El Salvador', 'El Salvador', 13.7, -88.9, 8, '[13.1, -90.1, 14.4, -87.7]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ni', 'NI', 'americas', 'Nicaragua', 'Nicaragua', 12.9, -85.0, 7, '[10.7, -87.7, 15.0, -82.7]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('cr', 'CR', 'americas', 'Costa Rica', 'Costa Rica', 9.7, -84.0, 7, '[8.0, -85.9, 11.2, -82.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('pa', 'PA', 'americas', 'Panama', 'Panama', 8.5, -80.8, 7, '[7.2, -83.0, 9.6, -77.2]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('bz', 'BZ', 'americas', 'Belize', 'Belize', 17.2, -88.7, 8, '[15.9, -89.2, 18.5, -87.8]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('cu', 'CU', 'americas', 'Cuba', 'Cuba', 21.5, -79.0, 6, '[19.8, -84.9, 23.3, -74.1]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('do', 'DO', 'americas', 'Dominicaanse Rep.', 'Dominican Republic', 18.7, -70.2, 7, '[17.5, -72.0, 19.9, -68.3]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('ht', 'HT', 'americas', 'Haïti', 'Haiti', 18.9, -72.3, 8, '[18.0, -74.5, 20.1, -71.6]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('pr', 'PR', 'americas', 'Puerto Rico', 'Puerto Rico', 18.2, -66.5, 8, '[17.9, -67.9, 18.5, -65.2]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('bs', 'BS', 'caribbean', 'Bahama''s', 'Bahamas', 25.0, -77.4, 7, '[20.9, -78.9, 27.3, -72.7]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('bb', 'BB', 'caribbean', 'Barbados', 'Barbados', 13.2, -59.5, 10, '[13.0, -59.7, 13.3, -59.4]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('gd', 'GD', 'caribbean', 'Grenada', 'Grenada', 12.1, -61.7, 10, '[11.9, -61.8, 12.5, -61.4]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('lc', 'LC', 'caribbean', 'Saint Lucia', 'Saint Lucia', 13.9, -60.9, 10, '[13.7, -61.1, 14.1, -60.9]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('gy', 'GY', 'americas', 'Guyana', 'Guyana', 4.9, -58.9, 6, '[1.2, -61.4, 8.6, -56.5]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;
INSERT INTO export_territories (code, country_iso2, region_code, name_nl, name_en, lat, lon, map_zoom, bbox, sync_priority) VALUES ('sr', 'SR', 'americas', 'Suriname', 'Suriname', 3.9, -56.0, 7, '[1.8, -58.1, 6.0, -53.9]'::jsonb, 2) ON CONFLICT (code) DO UPDATE SET region_code=EXCLUDED.region_code, name_nl=EXCLUDED.name_nl, name_en=EXCLUDED.name_en, lat=EXCLUDED.lat, lon=EXCLUDED.lon, map_zoom=EXCLUDED.map_zoom, bbox=EXCLUDED.bbox, sync_priority=EXCLUDED.sync_priority, is_active=TRUE;

INSERT INTO export_caterer_presence (brand_code, country_iso2, local_legal_name, service_lines, procurement_model, supplier_entry_point)
SELECT v.brand_code, v.country_iso2, v.local_name, v.service_lines::jsonb, v.procurement_model, v.supplier_entry_point FROM (VALUES
    ('compass', 'ZA', 'Compass Group South Africa', '["workplace"]', 'central_national', 'national_procurement'),
    ('sodexo', 'ZA', 'Sodexo South Africa', '["workplace","healthcare"]', 'central_national', 'tender_portal'),
    ('compass', 'BR', 'Compass Group Brazil', '["workplace"]', 'central_national', 'national_procurement'),
    ('sodexo', 'BR', 'Sodexo Brazil', '["workplace"]', 'central_national', 'tender_portal'),
    ('aramark', 'MX', 'Aramark Mexico', '["workplace"]', 'central_national', 'national_procurement'),
    ('compass', 'CA', 'Compass Group Canada', '["workplace"]', 'central_national', 'national_procurement'),
    ('sodexo', 'EG', 'Sodexo Egypt', '["workplace"]', 'central_national', 'tender_portal'),
    ('sodexo', 'NG', 'Sodexo Nigeria', '["workplace"]', 'central_national', 'tender_portal'),
    ('sodexo', 'KE', 'Sodexo Kenya', '["workplace"]', 'central_national', 'tender_portal')
) AS v(brand_code, country_iso2, local_name, service_lines, procurement_model, supplier_entry_point)
WHERE NOT EXISTS (SELECT 1 FROM export_caterer_presence p WHERE p.brand_code = v.brand_code AND p.country_iso2 = v.country_iso2);
