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 "employee" (
"Employee_ID" INT UNIQUE,
"City" TEXT,
PRIMARY KEY ("Employee_ID")
);

CREATE TABLE "evaluation" (
"Employee_ID" TEXT,
"Year_awarded" TEXT,
PRIMARY KEY ("Employee_ID", "Year_awarded")
);

CREATE TABLE "hiring" (
"Shop_ID" INT,
"Employee_ID" INT,
PRIMARY KEY ("Employee_ID"),
FOREIGN KEY ("Shop_ID") REFERENCES "shop"("Shop_ID")
);

CREATE TABLE "shop" (
"Shop_ID" INT,
"Location" TEXT,
PRIMARY KEY ("Shop_ID")
);





INSERT INTO "employee" VALUES ("1", "New York");
INSERT INTO "employee" VALUES ("2", "Los Angeles");
INSERT INTO "employee" VALUES ("3", "Chicago");
INSERT INTO "employee" VALUES ("4", "New York");
INSERT INTO "employee" VALUES ("5", "Houston");
INSERT INTO "employee" VALUES ("6", "Chicago");
INSERT INTO "employee" VALUES ("7", "Phoenix");
INSERT INTO "employee" VALUES ("8", "Philadelphia");
INSERT INTO "employee" VALUES ("9", "San Antonio");
INSERT INTO "employee" VALUES ("10", "San Diego");
INSERT INTO "employee" VALUES ("11", "Dallas");
INSERT INTO "employee" VALUES ("12", "San Jose");
INSERT INTO "employee" VALUES ("13", "Austin");
INSERT INTO "employee" VALUES ("14", "Jacksonville");
INSERT INTO "employee" VALUES ("15", "Fort Worth");
INSERT INTO "employee" VALUES ("16", "Columbus");
INSERT INTO "employee" VALUES ("17", "Charlotte");
INSERT INTO "employee" VALUES ("18", "Detroit");
INSERT INTO "employee" VALUES ("19", "El Paso");
INSERT INTO "employee" VALUES ("20", "NULL");
INSERT INTO "employee" VALUES ("21", "New York");
INSERT INTO "employee" VALUES ("22", "Los Angeles");
INSERT INTO "employee" VALUES ("23", "Chicago");
INSERT INTO "employee" VALUES ("24", "New York");
INSERT INTO "employee" VALUES ("25", "Houston");
INSERT INTO "employee" VALUES ("26", "Chicago");
INSERT INTO "employee" VALUES ("27", "Phoenix");
INSERT INTO "employee" VALUES ("28", "Philadelphia");
INSERT INTO "employee" VALUES ("29", "San Antonio");
INSERT INTO "employee" VALUES ("30", "San Diego");
INSERT INTO "employee" VALUES ("31", "Dallas");
INSERT INTO "employee" VALUES ("32", "San Jose");
INSERT INTO "employee" VALUES ("33", "Austin");
INSERT INTO "employee" VALUES ("34", "Jacksonville");
INSERT INTO "employee" VALUES ("35", "Fort Worth");
INSERT INTO "employee" VALUES ("36", "Columbus");
INSERT INTO "employee" VALUES ("37", "Charlotte");
INSERT INTO "employee" VALUES ("38", "Detroit");
INSERT INTO "employee" VALUES ("39", "El Paso");
INSERT INTO "employee" VALUES ("40", "NULL");
INSERT INTO "employee" VALUES ("41", "Boulder");
INSERT INTO "employee" VALUES ("42", "Boulder");
INSERT INTO "employee" VALUES ("43", "Boulder");
INSERT INTO "employee" VALUES ("44", "Boulder");
INSERT INTO "employee" VALUES ("45", "Boulder");
INSERT INTO "employee" VALUES ("46", "Boulder");
INSERT INTO "employee" VALUES ("47", "Boulder");
INSERT INTO "employee" VALUES ("48", "Boulder");
INSERT INTO "employee" VALUES ("49", "Boulder");
INSERT INTO "employee" VALUES ("50", "Boulder");
INSERT INTO "shop" VALUES ("1", "New York");
INSERT INTO "shop" VALUES ("2", "Los Angeles");
INSERT INTO "shop" VALUES ("3", "Chicago");
INSERT INTO "shop" VALUES ("4", "Houston");
INSERT INTO "shop" VALUES ("5", "Phoenix");
INSERT INTO "shop" VALUES ("6", "Philadelphia");
INSERT INTO "shop" VALUES ("7", "San Antonio");
INSERT INTO "shop" VALUES ("8", "San Diego");
INSERT INTO "shop" VALUES ("9", "Dallas");
INSERT INTO "shop" VALUES ("10", "San Jose");
INSERT INTO "shop" VALUES ("11", "Austin");
INSERT INTO "shop" VALUES ("12", "Jacksonville");
INSERT INTO "shop" VALUES ("13", "Fort Worth");
INSERT INTO "shop" VALUES ("14", "Columbus");
INSERT INTO "shop" VALUES ("15", "Charlotte");
INSERT INTO "shop" VALUES ("16", "Detroit");
INSERT INTO "shop" VALUES ("17", "El Paso");
INSERT INTO "shop" VALUES ("18", "Boulder");
INSERT INTO "hiring" VALUES ("1", "1");
INSERT INTO "hiring" VALUES ("2", "2");
INSERT INTO "hiring" VALUES ("3", "3");
INSERT INTO "hiring" VALUES ("1", "4");
INSERT INTO "hiring" VALUES ("4", "5");
INSERT INTO "hiring" VALUES ("3", "6");
INSERT INTO "hiring" VALUES ("5", "7");
INSERT INTO "hiring" VALUES ("6", "8");
INSERT INTO "hiring" VALUES ("7", "9");
INSERT INTO "hiring" VALUES ("8", "10");
INSERT INTO "hiring" VALUES ("9", "11");
INSERT INTO "hiring" VALUES ("10", "12");
INSERT INTO "hiring" VALUES ("11", "13");
INSERT INTO "hiring" VALUES ("12", "14");
INSERT INTO "hiring" VALUES ("13", "15");
INSERT INTO "hiring" VALUES ("14", "16");
INSERT INTO "hiring" VALUES ("15", "17");
INSERT INTO "hiring" VALUES ("16", "18");
INSERT INTO "hiring" VALUES ("17", "19");
INSERT INTO "hiring" VALUES ("18", "41");
INSERT INTO "hiring" VALUES ("18", "42");
INSERT INTO "hiring" VALUES ("18", "43");
INSERT INTO "hiring" VALUES ("18", "44");
INSERT INTO "hiring" VALUES ("18", "45");
INSERT INTO "hiring" VALUES ("18", "46");
INSERT INTO "hiring" VALUES ("18", "47");
INSERT INTO "hiring" VALUES ("18", "48");
INSERT INTO "hiring" VALUES ("18", "49");
INSERT INTO "hiring" VALUES ("18", "50");
INSERT INTO "evaluation" VALUES ("1", "2020");
INSERT INTO "evaluation" VALUES ("2", "2021");
INSERT INTO "evaluation" VALUES ("3", "2020");
INSERT INTO "evaluation" VALUES ("4", "2019");
INSERT INTO "evaluation" VALUES ("5", "2021");
INSERT INTO "evaluation" VALUES ("6", "2020");
INSERT INTO "evaluation" VALUES ("7", "2019");
INSERT INTO "evaluation" VALUES ("8", "2021");
INSERT INTO "evaluation" VALUES ("9", "2020");
INSERT INTO "evaluation" VALUES ("10", "2019");
INSERT INTO "evaluation" VALUES ("11", "2021");
INSERT INTO "evaluation" VALUES ("12", "2020");
INSERT INTO "evaluation" VALUES ("13", "2019");
INSERT INTO "evaluation" VALUES ("14", "2021");
INSERT INTO "evaluation" VALUES ("15", "2020");
INSERT INTO "evaluation" VALUES ("16", "2019");
INSERT INTO "evaluation" VALUES ("17", "2021");
INSERT INTO "evaluation" VALUES ("18", "2020");
INSERT INTO "evaluation" VALUES ("19", "2019");
INSERT INTO "evaluation" VALUES ("41", "2021");
INSERT INTO "evaluation" VALUES ("42", "2020");
INSERT INTO "evaluation" VALUES ("43", "2019");
INSERT INTO "evaluation" VALUES ("44", "2021");
INSERT INTO "evaluation" VALUES ("45", "2020");
INSERT INTO "evaluation" VALUES ("46", "2019");
INSERT INTO "evaluation" VALUES ("47", "2021");
INSERT INTO "evaluation" VALUES ("48", "2020");
INSERT INTO "evaluation" VALUES ("49", "2019");
INSERT INTO "evaluation" VALUES ("50", "2021");