From 7b3a1451bb82f1a8d96eccdd20a602a71e7321a9 Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Wed, 21 Jun 2023 15:49:10 +0200 Subject: [PATCH] Update templates messages Add iso3166 country list Link MMSI MID Codes with iso3166 country list --- initdb/02_3_1_signalk_public_tables.sql | 870 +++++++++++++++--------- 1 file changed, 567 insertions(+), 303 deletions(-) diff --git a/initdb/02_3_1_signalk_public_tables.sql b/initdb/02_3_1_signalk_public_tables.sql index da6c3b1..5e4e290 100644 --- a/initdb/02_3_1_signalk_public_tables.sql +++ b/initdb/02_3_1_signalk_public_tables.sql @@ -94,7 +94,7 @@ INSERT INTO email_templates VALUES E'Congratulations!\nPlease validate your account. Check your email!'), ('email_valid', 'Email verified', - E'Hello __RECIPIENT__,\nCongratulations!\nYou successfully validate your account.\nThe PostgSail Team', + E'Hello,\nCongratulations!\nYou successfully validate your account.\nThe PostgSail Team', 'Email verified', E'Hi!\nYou successfully validate your account.\n'), ('email_reset', @@ -104,9 +104,9 @@ INSERT INTO email_templates VALUES E'You requested a password recovery. Check your email!\n'), ('telegram_otp', 'Telegram bot', - E'Hello __RECIPIENT__,\nTo connect your account to a @postgsail_bot. Please type this verification code __OTP_CODE__ back to the bot.\nThe code is valid 15 minutes.\nThe PostgSail Team', + E'Hello,\nTo connect your account to a @postgsail_bot. Please type this verification code __OTP_CODE__ back to the bot.\nThe code is valid 15 minutes.\nThe PostgSail Team', 'Telegram bot', - E'Congratulations!\nTo connect your account to a @postgsail_bot. Check your email!\n'), + E'Hello,\nTo connect your account to a @postgsail_bot. Check your email!\n'), ('telegram_valid', 'Telegram bot', E'Hello __RECIPIENT__,\nCongratulations! You have just connect your account to your vessel, @postgsail_bot.\n\nThe PostgSail Team', @@ -183,9 +183,9 @@ COMMENT ON COLUMN public.app_settings.value IS 'application settings value'; --------------------------------------------------------------------------- -- Badges description --- TODO add contiditions -- -CREATE TABLE IF NOT EXISTS badges( +DROP FUNCTION IF EXISTS public.badges; +CREATE TABLE IF NOT EXISTS public.badges( name TEXT UNIQUE, description TEXT ); @@ -205,21 +205,20 @@ INSERT INTO badges VALUES 'It takes a lot of skill to "thread that floating needle" but seems like you have mastered mooring with 10 nights on buoy!'), ('Anchormaster', 'Hook, line and sinker, you have this anchoring thing down! 25 days on the hook for you!'), -('Traveler', +('Traveler todo', 'Who needs to fly when one can sail! You are an international sailor. À votre santé!'), ('Stormtrooper', 'Just like the elite defenders of the Empire, here you are, our braving your own hydro-empire in windspeeds above 30kts. Nice work trooper! '), ('Club Alaska', 'Home to the bears, glaciers, midnight sun and high adventure. Welcome to the Club Alaska Captain!'), ('Tropical Traveler', - 'Look at you with your suntan, tropical drink and southern latitude!'), + 'Look at you with your suntan, tropical drink and southern latitude!'), ('Aloha Award', - 'Ticking off over 2300 NM across the great blue Pacific makes you the rare recipient of the Aloha Award. Well done and Aloha sailor!'), -('Tyee', - 'You made it to the Tyee Outstation, the friendliest dock in Pacific Northwest!'), --- TODO the sea is big and the world is not limited to the US -('Mediterranean Traveler', - 'You made it trought the Mediterranean!'); + 'Ticking off over 2300 NM across the great blue Pacific makes you the rare recipient of the Aloha Award. Well done and Aloha sailor!'), +('Navigator Award', + 'You made it, Ticking off over 100NM in one go, well done sailor!'), +('Long-distance Award', + 'Congratulation, you reach over 1000NM, well done sailor!'); --------------------------------------------------------------------------- -- aistypes description @@ -321,7 +320,8 @@ INSERT INTO aistypes VALUES -- CREATE TABLE IF NOT EXISTS mid( country TEXT, - id NUMERIC UNIQUE + id NUMERIC UNIQUE, + country_id INTEGER ); -- Description COMMENT ON TABLE @@ -329,292 +329,556 @@ COMMENT ON TABLE IS 'MMSI MID Codes (Maritime Mobile Service Identity) Filtered by Flag of Registration, https://www.marinevesseltraffic.com/2013/11/mmsi-mid-codes-by-flag.html'; INSERT INTO mid VALUES -('Adelie Land', 501), -('Afghanistan', 401), -('Alaska', 303), -('Albania', 201), -('Algeria', 605), -('American Samoa', 559), -('Andorra', 202), -('Angola', 603), -('Anguilla', 301), -('Antigua and Barbuda', 304), -('Antigua and Barbuda', 305), -('Argentina', 701), -('Armenia', 216), -('Aruba', 307), -('Ascension Island', 608), -('Australia', 503), -('Austria', 203), -('Azerbaijan', 423), -('Azores', 204), -('Bahamas', 308), -('Bahamas', 309), -('Bahamas', 311), -('Bahrain', 408), -('Bangladesh', 405), -('Barbados', 314), -('Belarus', 206), -('Belgium', 205), -('Belize', 312), -('Benin', 610), -('Bermuda', 310), -('Bhutan', 410), -('Bolivia', 720), -('Bosnia and Herzegovina', 478), -('Botswana', 611), -('Brazil', 710), -('British Virgin Islands', 378), -('Brunei Darussalam', 508), -('Bulgaria', 207), -('Burkina Faso', 633), -('Burundi', 609), -('Cambodia', 514), -('Cambodia', 515), -('Cameroon', 613), -('Canada', 316), -('Cape Verde', 617), -('Cayman Islands', 319), -('Central African Republic', 612), -('Chad', 670), -('Chile', 725), -('China', 412), -('China', 413), -('China', 414), -('Christmas Island', 516), -('Cocos Islands', 523), -('Colombia', 730), -('Comoros', 616), -('Comoros', 620), -('Congo', 615), -('Cook Islands', 518), -('Costa Rica', 321), -(E'Côte d\'Ivoire', 619), -('Croatia', 238), -('Crozet Archipelago', 618), -('Cuba', 323), -('Cyprus', 209), -('Cyprus', 210), -('Cyprus', 212), -('Czech Republic', 270), -('Denmark', 219), -('Denmark', 220), -('Djibouti', 621), -('Dominica', 325), -('Dominican Republic', 327), -('DR Congo', 676), -('Ecuador', 735), -('Egypt', 622), -('El Salvador', 359), -('Equatorial Guinea', 631), -('Eritrea', 625), -('Estonia', 276), -('Ethiopia', 624), -('Falkland Islands', 740), -('Faroe Islands', 231), -('Fiji', 520), -('Finland', 230), -('France', 226), -('France', 227), -('France', 228), -('French Polynesia', 546), -('Gabonese Republic', 626), -('Gambia', 629), -('Georgia', 213), -('Germany', 211), -('Germany', 218), -('Ghana', 627), -('Gibraltar', 236), -('Greece', 237), -('Greece', 239), -('Greece', 240), -('Greece', 241), -('Greenland', 331), -('Grenada', 330), -('Guadeloupe', 329), -('Guatemala', 332), -('Guiana', 745), -('Guinea', 632), -('Guinea-Bissau', 630), -('Guyana', 750), -('Haiti', 336), -('Honduras', 334), -('Hong Kong', 477), -('Hungary', 243), -('Iceland', 251), -('India', 419), -('Indonesia', 525), -('Iran', 422), -('Iraq', 425), -('Ireland', 250), -('Israel', 428), -('Italy', 247), -('Jamaica', 339), -('Japan', 431), -('Japan', 432), -('Jordan', 438), -('Kazakhstan', 436), -('Kenya', 634), -('Kerguelen Islands', 635), -('Kiribati', 529), -('Kuwait', 447), -('Kyrgyzstan', 451), -('Lao', 531), -('Latvia', 275), -('Lebanon', 450), -('Lesotho', 644), -('Liberia', 636), -('Liberia', 637), -('Libya', 642), -('Liechtenstein', 252), -('Lithuania', 277), -('Luxembourg', 253), -('Macao', 453), -('Madagascar', 647), -('Madeira', 255), -('Makedonia', 274), -('Malawi', 655), -('Malaysia', 533), -('Maldives', 455), -('Mali', 649), -('Malta', 215), -('Malta', 229), -('Malta', 248), -('Malta', 249), -('Malta', 256), -('Marshall Islands', 538), -('Martinique', 347), -('Mauritania', 654), -('Mauritius', 645), -('Mexico', 345), -('Micronesia', 510), -('Moldova', 214), -('Monaco', 254), -('Mongolia', 457), -('Montenegro', 262), -('Montserrat', 348), -('Morocco', 242), -('Mozambique', 650), -('Myanmar', 506), -('Namibia', 659), -('Nauru', 544), -('Nepal', 459), -('Netherlands', 244), -('Netherlands', 245), -('Netherlands', 246), -('Netherlands Antilles', 306), -('New Caledonia', 540), -('New Zealand', 512), -('Nicaragua', 350), -('Niger', 656), -('Nigeria', 657), -('Niue', 542), -('North Korea', 445), -('Northern Mariana Islands', 536), -('Norway', 257), -('Norway', 258), -('Norway', 259), -('Oman', 461), -('Pakistan', 463), -('Palau', 511), -('Palestine', 443), -('Panama', 351), -('Panama', 352), -('Panama', 353), -('Panama', 354), -('Panama', 355), -('Panama', 356), -('Panama', 357), -('Panama', 370), -('Panama', 371), -('Panama', 372), -('Panama', 373), -('Papua New Guinea', 553), -('Paraguay', 755), -('Peru', 760), -('Philippines', 548), -('Pitcairn Island', 555), -('Poland', 261), -('Portugal', 263), -('Puerto Rico', 358), -('Qatar', 466), -('Reunion', 660), -('Romania', 264), -('Russian Federation', 273), -('Rwanda', 661), -('Saint Helena', 665), -('Saint Kitts and Nevis', 341), -('Saint Lucia', 343), -('Saint Paul and Amsterdam Islands', 607), -('Saint Pierre and Miquelon', 361), -('Samoa', 561), -('San Marino', 268), -('Sao Tome and Principe', 668), -('Saudi Arabia', 403), -('Senegal', 663), -('Serbia', 279), -('Seychelles', 664), -('Sierra Leone', 667), -('Singapore', 563), -('Singapore', 564), -('Singapore', 565), -('Singapore', 566), -('Slovakia', 267), -('Slovenia', 278), -('Solomon Islands', 557), -('Somalia', 666), -('South Africa', 601), -('South Korea', 440), -('South Korea', 441), -('South Sudan', 638), -('Spain', 224), -('Spain', 225), -('Sri Lanka', 417), -('St Vincent and the Grenadines', 375), -('St Vincent and the Grenadines', 376), -('St Vincent and the Grenadines', 377), -('Sudan', 662), -('Suriname', 765), -('Swaziland', 669), -('Sweden', 265), -('Sweden', 266), -('Switzerland', 269), -('Syria', 468), -('Taiwan', 416), -('Tajikistan', 472), -('Tanzania', 674), -('Tanzania', 677), -('Thailand', 567), -('Togolese', 671), -('Tonga', 570), -('Trinidad and Tobago', 362), -('Tunisia', 672), -('Turkey', 271), -('Turkmenistan', 434), -('Turks and Caicos Islands', 364), -('Tuvalu', 572), -('Uganda', 675), -('Ukraine', 272), -('United Arab Emirates', 470), -('United Kingdom', 232), -('United Kingdom', 233), -('United Kingdom', 234), -('United Kingdom', 235), -('Uruguay', 770), -('US Virgin Islands', 379), -('USA', 338), -('USA', 366), -('USA', 367), -('USA', 368), -('USA', 369), -('Uzbekistan', 437), -('Vanuatu', 576), -('Vanuatu', 577), -('Vatican City', 208), -('Venezuela', 775), -('Vietnam', 574), -('Wallis and Futuna Islands', 578), -('Yemen', 473), -('Yemen', 475), -('Zambia', 678), -('Zimbabwe', 679); +('Adelie Land', 501, NULL), +('Afghanistan', 401, 4), +('Alaska', 303, 840), +('Albania', 201, 8), +('Algeria', 605, 12), +('American Samoa', 559, 16), +('Andorra', 202, 20), +('Angola', 603, 24), +('Anguilla', 301, 660), +('Antigua and Barbuda', 304, 28), +('Antigua and Barbuda', 305, 28), +('Argentina', 701, 32), +('Armenia', 216, 51), +('Aruba', 307, 533), +('Ascension Island', 608, NULL), +('Australia', 503, 36), +('Austria', 203, 40), +('Azerbaijan', 423, 31), +('Azores', 204, NULL), +('Bahamas', 308, 44), +('Bahamas', 309, 44), +('Bahamas', 311, 44), +('Bahrain', 408, 48), +('Bangladesh', 405, 50), +('Barbados', 314, 52), +('Belarus', 206, 112), +('Belgium', 205, 56), +('Belize', 312, 84), +('Benin', 610, 204), +('Bermuda', 310, 60), +('Bhutan', 410, 64), +('Bolivia', 720, 68), +('Bosnia and Herzegovina', 478, 70), +('Botswana', 611, 72), +('Brazil', 710, 76), +('British Virgin Islands', 378, 92), +('Brunei Darussalam', 508, 96), +('Bulgaria', 207, 100), +('Burkina Faso', 633, 854), +('Burundi', 609, 108), +('Cambodia', 514, 116), +('Cambodia', 515, 116), +('Cameroon', 613, 120), +('Canada', 316, 124), +('Cape Verde', 617, 132), +('Cayman Islands', 319, 136), +('Central African Republic', 612, 140), +('Chad', 670, 148), +('Chile', 725, 152), +('China', 412, 156), +('China', 413, 156), +('China', 414, 156), +('Christmas Island', 516, 162), +('Cocos Islands', 523, 166), +('Colombia', 730, 170), +('Comoros', 616, 174), +('Comoros', 620, 174), +('Congo', 615, 178), +('Cook Islands', 518, 184), +('Costa Rica', 321, 188), +(E'Côte d\'Ivoire', 619, 384), +('Croatia', 238, 191), +('Crozet Archipelago', 618, NULL), +('Cuba', 323, 192), +('Cyprus', 209, 196), +('Cyprus', 210, 196), +('Cyprus', 212, 196), +('Czech Republic', 270, 203), +('Denmark', 219, 208), +('Denmark', 220, 208), +('Djibouti', 621, 262), +('Dominica', 325, 212), +('Dominican Republic', 327, 214), +('DR Congo', 676, NULL), +('Ecuador', 735, 218), +('Egypt', 622, 818), +('El Salvador', 359, 222), +('Equatorial Guinea', 631, 226), +('Eritrea', 625, 232), +('Estonia', 276, 233), +('Ethiopia', 624, 231), +('Falkland Islands', 740, 234), +('Faroe Islands', 231, NULL), +('Fiji', 520, 242), +('Finland', 230, 246), +('France', 226, 250), +('France', 227, 250), +('France', 228, 250), +('French Polynesia', 546, 260), +('Gabonese Republic', 626, 266), +('Gambia', 629, 270), +('Georgia', 213, 268), +('Germany', 211, 276), +('Germany', 218, 276), +('Ghana', 627, 288), +('Gibraltar', 236, 292), +('Greece', 237, 300), +('Greece', 239, 300), +('Greece', 240, 300), +('Greece', 241, 300), +('Greenland', 331, 304), +('Grenada', 330, 308), +('Guadeloupe', 329, 312), +('Guatemala', 332, 320), +('Guiana', 745, 324), +('Guinea', 632, 324), +('Guinea-Bissau', 630, 624), +('Guyana', 750, 328), +('Haiti', 336, 332), +('Honduras', 334, 340), +('Hong Kong', 477, 344), +('Hungary', 243, 348), +('Iceland', 251, 352), +('India', 419, 356), +('Indonesia', 525, 360), +('Iran', 422, 364), +('Iraq', 425, 368), +('Ireland', 250, 372), +('Israel', 428, 376), +('Italy', 247, 380), +('Jamaica', 339, 388), +('Japan', 431, 392), +('Japan', 432, 392), +('Jordan', 438, 400), +('Kazakhstan', 436, 398), +('Kenya', 634, 404), +('Kerguelen Islands', 635, NULL), +('Kiribati', 529, 296), +('Kuwait', 447, 414), +('Kyrgyzstan', 451, 417), +('Lao', 531, 418), +('Latvia', 275, 428), +('Lebanon', 450, 422), +('Lesotho', 644, 426), +('Liberia', 636, 430), +('Liberia', 637, 430), +('Libya', 642, 434), +('Liechtenstein', 252, 438), +('Lithuania', 277, 440), +('Luxembourg', 253, 442), +('Macao', 453, 446), +('Madagascar', 647, 450), +('Madeira', 255, NULL), +('Makedonia', 274, NULL), +('Malawi', 655, 454), +('Malaysia', 533, 458), +('Maldives', 455, 462), +('Mali', 649, 466), +('Malta', 215, 470), +('Malta', 229, 470), +('Malta', 248, 470), +('Malta', 249, 470), +('Malta', 256, 470), +('Marshall Islands', 538, 584), +('Martinique', 347, 474), +('Mauritania', 654, 478), +('Mauritius', 645, 480), +('Mexico', 345, 484), +('Micronesia', 510, 583), +('Moldova', 214, 498), +('Monaco', 254, 492), +('Mongolia', 457, 496), +('Montenegro', 262, 499), +('Montserrat', 348, 500), +('Morocco', 242, 504), +('Mozambique', 650, 508), +('Myanmar', 506, 104), +('Namibia', 659, 516), +('Nauru', 544, 520), +('Nepal', 459, 524), +('Netherlands', 244, 528), +('Netherlands', 245, 528), +('Netherlands', 246, 528), +('Netherlands Antilles', 306, NULL), +('New Caledonia', 540, 540), +('New Zealand', 512, 554), +('Nicaragua', 350, 558), +('Niger', 656, 562), +('Nigeria', 657, 566), +('Niue', 542, 570), +('North Korea', 445, 408), +('Northern Mariana Islands', 536, 580), +('Norway', 257, 578), +('Norway', 258, 578), +('Norway', 259, 578), +('Oman', 461, 512), +('Pakistan', 463, 586), +('Palau', 511, 585), +('Palestine', 443, 275), +('Panama', 351, 591), +('Panama', 352, 591), +('Panama', 353, 591), +('Panama', 354, 591), +('Panama', 355, 591), +('Panama', 356, 591), +('Panama', 357, 591), +('Panama', 370, 591), +('Panama', 371, 591), +('Panama', 372, 591), +('Panama', 373, 591), +('Papua New Guinea', 553, 598), +('Paraguay', 755, 600), +('Peru', 760, 604), +('Philippines', 548, 608), +('Pitcairn Island', 555, 612), +('Poland', 261, 616), +('Portugal', 263, 620), +('Puerto Rico', 358, 630), +('Qatar', 466, 634), +('Reunion', 660, 638), +('Romania', 264, 642), +('Russian Federation', 273, 643), +('Rwanda', 661, 646), +('Saint Helena', 665, 654), +('Saint Kitts and Nevis', 341, 659), +('Saint Lucia', 343, 662), +('Saint Paul and Amsterdam Islands', 607, NULL), +('Saint Pierre and Miquelon', 361, 666), +('Samoa', 561, 882), +('San Marino', 268, 674), +('Sao Tome and Principe', 668, 678), +('Saudi Arabia', 403, 682), +('Senegal', 663, 686), +('Serbia', 279, 688), +('Seychelles', 664, 690), +('Sierra Leone', 667, 694), +('Singapore', 563, 702), +('Singapore', 564, 702), +('Singapore', 565, 702), +('Singapore', 566, 702), +('Slovakia', 267, 703), +('Slovenia', 278, 705), +('Solomon Islands', 557, 90), +('Somalia', 666, 706), +('South Africa', 601, 710), +('South Korea', 440, 410), +('South Korea', 441, 410), +('South Sudan', 638, 728), +('Spain', 224, 724), +('Spain', 225, 724), +('Sri Lanka', 417, 144), +('St Vincent and the Grenadines', 375, 670), +('St Vincent and the Grenadines', 376, 670), +('St Vincent and the Grenadines', 377, 670), +('Sudan', 662, 729), +('Suriname', 765, 740), +('Swaziland', 669, 748), +('Sweden', 265, 752), +('Sweden', 266, 752), +('Switzerland', 269, 756), +('Syria', 468, 760), +('Taiwan', 416, 158), +('Tajikistan', 472, 762), +('Tanzania', 674, 834), +('Tanzania', 677, 834), +('Thailand', 567, 764), +('Togolese', 671, 768), +('Tonga', 570, 776), +('Trinidad and Tobago', 362, 780), +('Tunisia', 672, 788), +('Turkey', 271, 792), +('Turkmenistan', 434, 795), +('Turks and Caicos Islands', 364, 796), +('Tuvalu', 572, 798), +('Uganda', 675, 800), +('Ukraine', 272, 804), +('United Arab Emirates', 470, 784), +('United Kingdom', 232, 826), +('United Kingdom', 233, 826), +('United Kingdom', 234, 826), +('United Kingdom', 235, 826), +('Uruguay', 770, 858), +('US Virgin Islands', 379, 850), +('USA', 338, 840), +('USA', 366, 840), +('USA', 367, 840), +('USA', 368, 840), +('USA', 369, 840), +('Uzbekistan', 437, 860), +('Vanuatu', 576, 548), +('Vanuatu', 577, 548), +('Vatican City', 208, NULL), +('Venezuela', 775, 862), +('Vietnam', 574, 704), +('Wallis and Futuna Islands', 578, 876), +('Yemen', 473, 887), +('Yemen', 475, 887), +('Zambia', 678, 894), +('Zimbabwe', 679, 716); + +--------------------------------------------------------------------------- +-- +CREATE TABLE IF NOT EXISTS iso3166( + id INTEGER, + country TEXT, + alpha_2 TEXT, + alpha_3 TEXT +); +-- Description +COMMENT ON TABLE + public.iso3166 + IS 'This is a complete list of all country ISO codes as described in the ISO 3166 international standard. Country Codes Alpha-2 & Alpha-3 https://www.iban.com/country-codes'; + +INSERT INTO iso3166 VALUES +(4,'Afghanistan','AF','AFG'), +(8,'Albania','AL','ALB'), +(12,'Algeria','DZ','DZA'), +(16,'American Samoa','AS','ASM'), +(20,'Andorra','AD','AND'), +(24,'Angola','AO','AGO'), +(660,'Anguilla','AI','AIA'), +(10,'Antarctica','AQ','ATA'), +(28,'Antigua and Barbuda','AG','ATG'), +(32,'Argentina','AR','ARG'), +(51,'Armenia','AM','ARM'), +(533,'Aruba','AW','ABW'), +(36,'Australia','AU','AUS'), +(40,'Austria','AT','AUT'), +(31,'Azerbaijan','AZ','AZE'), +(44,'Bahamas (the)','BS','BHS'), +(48,'Bahrain','BH','BHR'), +(50,'Bangladesh','BD','BGD'), +(52,'Barbados','BB','BRB'), +(112,'Belarus','BY','BLR'), +(56,'Belgium','BE','BEL'), +(84,'Belize','BZ','BLZ'), +(204,'Benin','BJ','BEN'), +(60,'Bermuda','BM','BMU'), +(64,'Bhutan','BT','BTN'), +(68,E'Bolivia (Plurinational State of)','BO','BOL'), +(535,'Bonaire, Sint Eustatius and Saba','BQ','BES'), +(70,'Bosnia and Herzegovina','BA','BIH'), +(72,'Botswana','BW','BWA'), +(74,'Bouvet Island','BV','BVT'), +(76,'Brazil','BR','BRA'), +(86,E'British Indian Ocean Territory (the)','IO','IOT'), +(96,'Brunei Darussalam','BN','BRN'), +(100,'Bulgaria','BG','BGR'), +(854,'Burkina Faso','BF','BFA'), +(108,'Burundi','BI','BDI'), +(132,'Cabo Verde','CV','CPV'), +(116,'Cambodia','KH','KHM'), +(120,'Cameroon','CM','CMR'), +(124,'Canada','CA','CAN'), +(136,E'Cayman Islands (the)','KY','CYM'), +(140,E'Central African Republic (the)','CF','CAF'), +(148,'Chad','TD','TCD'), +(152,'Chile','CL','CHL'), +(156,'China','CN','CHN'), +(162,'Christmas Island','CX','CXR'), +(166,E'Cocos (Keeling) Islands (the)','CC','CCK'), +(170,'Colombia','CO','COL'), +(174,'Comoros (the)','KM','COM'), +(180,E'Congo (the Democratic Republic of the)','CD','COD'), +(178,E'Congo (the)','CG','COG'), +(184,E'Cook Islands (the)','CK','COK'), +(188,'Costa Rica','CR','CRI'), +(191,'Croatia','HR','HRV'), +(192,'Cuba','CU','CUB'), +(531,'Curaçao','CW','CUW'), +(196,'Cyprus','CY','CYP'), +(203,'Czechia','CZ','CZE'), +(384,E'Côte d\'Ivoire','CI','CIV'), +(208,'Denmark','DK','DNK'), +(262,'Djibouti','DJ','DJI'), +(212,'Dominica','DM','DMA'), +(214,E'Dominican Republic (the)','DO','DOM'), +(218,'Ecuador','EC','ECU'), +(818,'Egypt','EG','EGY'), +(222,'El Salvador','SV','SLV'), +(226,'Equatorial Guinea','GQ','GNQ'), +(232,'Eritrea','ER','ERI'), +(233,'Estonia','EE','EST'), +(748,'Eswatini','SZ','SWZ'), +(231,'Ethiopia','ET','ETH'), +(238,E'Falkland Islands (the) [Malvinas]','FK','FLK'), +(234,E'Faroe Islands (the)','FO','FRO'), +(242,'Fiji','FJ','FJI'), +(246,'Finland','FI','FIN'), +(250,'France','FR','FRA'), +(254,'French Guiana','GF','GUF'), +(258,'French Polynesia','PF','PYF'), +(260,E'French Southern Territories (the)','TF','ATF'), +(266,'Gabon','GA','GAB'), +(270,E'Gambia (the)','GM','GMB'), +(268,'Georgia','GE','GEO'), +(276,'Germany','DE','DEU'), +(288,'Ghana','GH','GHA'), +(292,'Gibraltar','GI','GIB'), +(300,'Greece','GR','GRC'), +(304,'Greenland','GL','GRL'), +(308,'Grenada','GD','GRD'), +(312,'Guadeloupe','GP','GLP'), +(316,'Guam','GU','GUM'), +(320,'Guatemala','GT','GTM'), +(831,'Guernsey','GG','GGY'), +(324,'Guinea','GN','GIN'), +(624,'Guinea-Bissau','GW','GNB'), +(328,'Guyana','GY','GUY'), +(332,'Haiti','HT','HTI'), +(334,'Heard Island and McDonald Islands','HM','HMD'), +(336,E'Holy See (the)','VA','VAT'), +(340,'Honduras','HN','HND'), +(344,'Hong Kong','HK','HKG'), +(348,'Hungary','HU','HUN'), +(352,'Iceland','IS','ISL'), +(356,'India','IN','IND'), +(360,'Indonesia','ID','IDN'), +(364,E'Iran (Islamic Republic of)','IR','IRN'), +(368,'Iraq','IQ','IRQ'), +(372,'Ireland','IE','IRL'), +(833,'Isle of Man','IM','IMN'), +(376,'Israel','IL','ISR'), +(380,'Italy','IT','ITA'), +(388,'Jamaica','JM','JAM'), +(392,'Japan','JP','JPN'), +(832,'Jersey','JE','JEY'), +(400,'Jordan','JO','JOR'), +(398,'Kazakhstan','KZ','KAZ'), +(404,'Kenya','KE','KEN'), +(296,'Kiribati','KI','KIR'), +(408,E'Korea (the Democratic People\'s Republic of)','KP','PRK'), +(410,E'Korea (the Republic of)','KR','KOR'), +(414,'Kuwait','KW','KWT'), +(417,'Kyrgyzstan','KG','KGZ'), +(418,E'Lao People\'s Democratic Republic (the)','LA','LAO'), +(428,'Latvia','LV','LVA'), +(422,'Lebanon','LB','LBN'), +(426,'Lesotho','LS','LSO'), +(430,'Liberia','LR','LBR'), +(434,'Libya','LY','LBY'), +(438,'Liechtenstein','LI','LIE'), +(440,'Lithuania','LT','LTU'), +(442,'Luxembourg','LU','LUX'), +(446,'Macao','MO','MAC'), +(450,'Madagascar','MG','MDG'), +(454,'Malawi','MW','MWI'), +(458,'Malaysia','MY','MYS'), +(462,'Maldives','MV','MDV'), +(466,'Mali','ML','MLI'), +(470,'Malta','MT','MLT'), +(584,E'Marshall Islands (the)','MH','MHL'), +(474,'Martinique','MQ','MTQ'), +(478,'Mauritania','MR','MRT'), +(480,'Mauritius','MU','MUS'), +(175,'Mayotte','YT','MYT'), +(484,'Mexico','MX','MEX'), +(583,E'Micronesia (Federated States of)','FM','FSM'), +(498,E'Moldova (the Republic of)','MD','MDA'), +(492,'Monaco','MC','MCO'), +(496,'Mongolia','MN','MNG'), +(499,'Montenegro','ME','MNE'), +(500,'Montserrat','MS','MSR'), +(504,'Morocco','MA','MAR'), +(508,'Mozambique','MZ','MOZ'), +(104,'Myanmar','MM','MMR'), +(516,'Namibia','NA','NAM'), +(520,'Nauru','NR','NRU'), +(524,'Nepal','NP','NPL'), +(528,E'Netherlands (the)','NL','NLD'), +(540,'New Caledonia','NC','NCL'), +(554,'New Zealand','NZ','NZL'), +(558,'Nicaragua','NI','NIC'), +(562,E'Niger (the)','NE','NER'), +(566,'Nigeria','NG','NGA'), +(570,'Niue','NU','NIU'), +(574,'Norfolk Island','NF','NFK'), +(580,E'Northern Mariana Islands (the)','MP','MNP'), +(578,'Norway','NO','NOR'), +(512,'Oman','OM','OMN'), +(586,'Pakistan','PK','PAK'), +(585,'Palau','PW','PLW'), +(275,'Palestine, State of','PS','PSE'), +(591,'Panama','PA','PAN'), +(598,'Papua New Guinea','PG','PNG'), +(600,'Paraguay','PY','PRY'), +(604,'Peru','PE','PER'), +(608,E'Philippines (the)','PH','PHL'), +(612,'Pitcairn','PN','PCN'), +(616,'Poland','PL','POL'), +(620,'Portugal','PT','PRT'), +(630,'Puerto Rico','PR','PRI'), +(634,'Qatar','QA','QAT'), +(807,'Republic of North Macedonia','MK','MKD'), +(642,'Romania','RO','ROU'), +(643,'Russian Federation (the)','RU','RUS'), +(646,'Rwanda','RW','RWA'), +(638,'Réunion','RE','REU'), +(652,'Saint Barthélemy','BL','BLM'), +(654,'Saint Helena, Ascension and Tristan da Cunha','SH','SHN'), +(659,'Saint Kitts and Nevis','KN','KNA'), +(662,'Saint Lucia','LC','LCA'), +(663,'Saint Martin (French part)','MF','MAF'), +(666,'Saint Pierre and Miquelon','PM','SPM'), +(670,'Saint Vincent and the Grenadines','VC','VCT'), +(882,'Samoa','WS','WSM'), +(674,'San Marino','SM','SMR'), +(678,'Sao Tome and Principe','ST','STP'), +(682,'Saudi Arabia','SA','SAU'), +(686,'Senegal','SN','SEN'), +(688,'Serbia','RS','SRB'), +(690,'Seychelles','SC','SYC'), +(694,'Sierra Leone','SL','SLE'), +(702,'Singapore','SG','SGP'), +(534,'Sint Maarten (Dutch part)','SX','SXM'), +(703,'Slovakia','SK','SVK'), +(705,'Slovenia','SI','SVN'), +(90,'Solomon Islands','SB','SLB'), +(706,'Somalia','SO','SOM'), +(710,'South Africa','ZA','ZAF'), +(239,'South Georgia and the South Sandwich Islands','GS','SGS'), +(728,'South Sudan','SS','SSD'), +(724,'Spain','ES','ESP'), +(144,'Sri Lanka','LK','LKA'), +(729,'Sudan (the)','SD','SDN'), +(740,'Suriname','SR','SUR'), +(744,'Svalbard and Jan Mayen','SJ','SJM'), +(752,'Sweden','SE','SWE'), +(756,'Switzerland','CH','CHE'), +(760,'Syrian Arab Republic','SY','SYR'), +(158,'Taiwan (Province of China)','TW','TWN'), +(762,'Tajikistan','TJ','TJK'), +(834,'Tanzania, United Republic of','TZ','TZA'), +(764,'Thailand','TH','THA'), +(626,'Timor-Leste','TL','TLS'), +(768,'Togo','TG','TGO'), +(772,'Tokelau','TK','TKL'), +(776,'Tonga','TO','TON'), +(780,'Trinidad and Tobago','TT','TTO'), +(788,'Tunisia','TN','TUN'), +(792,'Turkey','TR','TUR'), +(795,'Turkmenistan','TM','TKM'), +(796,'Turks and Caicos Islands (the)','TC','TCA'), +(798,'Tuvalu','TV','TUV'), +(800,'Uganda','UG','UGA'), +(804,'Ukraine','UA','UKR'), +(784,'United Arab Emirates (the)','AE','ARE'), +(826,'United Kingdom of Great Britain and Northern Ireland (the)','GB','GBR'), +(581,'United States Minor Outlying Islands (the)','UM','UMI'), +(840,'United States of America (the)','US','USA'), +(858,'Uruguay','UY','URY'), +(860,'Uzbekistan','UZ','UZB'), +(548,'Vanuatu','VU','VUT'), +(862,'Venezuela (Bolivarian Republic of)','VE','VEN'), +(704,'Viet Nam','VN','VNM'), +(92,'Virgin Islands (British)','VG','VGB'), +(850,'Virgin Islands (U.S.)','VI','VIR'), +(876,'Wallis and Futuna','WF','WLF'), +(732,'Western Sahara','EH','ESH'), +(887,'Yemen','YE','YEM'), +(894,'Zambia','ZM','ZMB'), +(716,'Zimbabwe','ZW','ZWE'), +(248,E'Åland Islands','AX','ALA');