PRAGMA foreign_keys = ON;

PRAGMA writable_schema = 1;
DELETE FROM sqlite_master WHERE type IN ("table", "index", "trigger");
PRAGMA writable_schema = 0;
VACUUM;

CREATE TABLE "airlines" (
"uid" INT,
"Country" TEXT,
PRIMARY KEY ("uid")
);

CREATE TABLE "airports" (
"AirportCode" TEXT,
"Country" TEXT,
"CountryAbbrev" TEXT,
PRIMARY KEY ("AirportCode")
);





INSERT INTO "airlines" VALUES ("1", "USA");
INSERT INTO "airlines" VALUES ("2", "USA");
INSERT INTO "airlines" VALUES ("3", "Canada");
INSERT INTO "airlines" VALUES ("4", "USA");
INSERT INTO "airlines" VALUES ("5", "Mexico");
INSERT INTO "airlines" VALUES ("6", "France");
INSERT INTO "airlines" VALUES ("7", "USA");
INSERT INTO "airlines" VALUES ("8", "Germany");
INSERT INTO "airlines" VALUES ("9", "Brazil");
INSERT INTO "airlines" VALUES ("10", "USA");
INSERT INTO "airports" VALUES ("JFK", "USA", "US");
INSERT INTO "airports" VALUES ("LAX", "USA", "US");
INSERT INTO "airports" VALUES ("YYZ", "Canada", "CA");
INSERT INTO "airports" VALUES ("CDG", "France", "FR");
INSERT INTO "airports" VALUES ("MEX", "Mexico", "MX");
INSERT INTO "airports" VALUES ("FRA", "Germany", "DE");
INSERT INTO "airports" VALUES ("GRU", "Brazil", "BR");
INSERT INTO "airports" VALUES ("ORD", "USA", "US");
INSERT INTO "airports" VALUES ("SFO", "USA", "US");
INSERT INTO "airports" VALUES ("ATL", "USA", "US");