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

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

CREATE TABLE "flights" (
"Airline" INT,
"FlightNo" INT,
PRIMARY KEY ("Airline", "FlightNo")
);





INSERT INTO "airlines" VALUES ("1", "JetBlue Airways", "JBL");
INSERT INTO "airlines" VALUES ("2", "JetBlue", "JBLU");
INSERT INTO "airlines" VALUES ("3", "Jet Blue Airways", "JBLA");
INSERT INTO "airlines" VALUES ("4", "JetBlue Airways", "NULL");
INSERT INTO "airlines" VALUES ("5", "JetBlue Airways International", "JBAI");
INSERT INTO "airlines" VALUES ("6", "JetBlue Air", "JBA");
INSERT INTO "airlines" VALUES ("7", "Jet Blue", "JB");
INSERT INTO "airlines" VALUES ("8", "JetBlue Airways", "JBLX");
INSERT INTO "airlines" VALUES ("9", "JetBlue Airways", "JBL");
INSERT INTO "airlines" VALUES ("10", "JetBlue Airways", "JBLU2");
INSERT INTO "airlines" VALUES ("11", "JetBlue Airways", "JBLU");
INSERT INTO "airlines" VALUES ("12", "JetBlue Airways", "JBLU1");
INSERT INTO "airlines" VALUES ("13", "JetBlue Airways", "");
INSERT INTO "airlines" VALUES ("14", "JetBlue Airways", "JB");
INSERT INTO "airlines" VALUES ("15", "JetBlue Airways", "JBLUX");