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,
"Airline" TEXT,
"Country" TEXT,
PRIMARY KEY ("uid")
);

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





INSERT INTO "airlines" VALUES ("1", "United Airlines", "USA");
INSERT INTO "airlines" VALUES ("2", "Delta Air Lines", "USA");
INSERT INTO "airlines" VALUES ("3", "American Airlines", "USA");
INSERT INTO "airlines" VALUES ("4", "Lufthansa", "Germany");
INSERT INTO "airlines" VALUES ("5", "Air France", "France");
INSERT INTO "airlines" VALUES ("6", "British Airways", "United Kingdom");
INSERT INTO "airlines" VALUES ("7", "Southwest Airlines", "USA");
INSERT INTO "airlines" VALUES ("8", "Emirates", "UAE");
INSERT INTO "airlines" VALUES ("9", "Qantas", "Australia");
INSERT INTO "airlines" VALUES ("10", "Air Canada", "Canada");
INSERT INTO "airports" VALUES ("New York", "JFK", "USA");
INSERT INTO "airports" VALUES ("Los Angeles", "LAX", "USA");
INSERT INTO "airports" VALUES ("London", "LHR", "United Kingdom");
INSERT INTO "airports" VALUES ("Paris", "CDG", "France");
INSERT INTO "airports" VALUES ("Frankfurt", "FRA", "Germany");
INSERT INTO "airports" VALUES ("Dubai", "DXB", "UAE");
INSERT INTO "airports" VALUES ("Sydney", "SYD", "Australia");
INSERT INTO "airports" VALUES ("Toronto", "YYZ", "Canada");
INSERT INTO "airports" VALUES ("Chicago", "ORD", "USA");
INSERT INTO "airports" VALUES ("Dallas", "DFW", "USA");