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,
PRIMARY KEY ("Employee_ID")
);

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

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





INSERT INTO "employee" VALUES ("101");
INSERT INTO "employee" VALUES ("103");
INSERT INTO "employee" VALUES ("107");
INSERT INTO "employee" VALUES ("110");
INSERT INTO "employee" VALUES ("115");
INSERT INTO "employee" VALUES ("120");
INSERT INTO "employee" VALUES ("125");
INSERT INTO "employee" VALUES ("130");
INSERT INTO "employee" VALUES ("135");
INSERT INTO "employee" VALUES ("140");
INSERT INTO "employee" VALUES ("145");
INSERT INTO "employee" VALUES ("150");
INSERT INTO "employee" VALUES ("155");
INSERT INTO "employee" VALUES ("160");
INSERT INTO "employee" VALUES ("165");
INSERT INTO "employee" VALUES ("170");
INSERT INTO "employee" VALUES ("175");
INSERT INTO "employee" VALUES ("180");
INSERT INTO "employee" VALUES ("185");
INSERT INTO "employee" VALUES ("190");
INSERT INTO "evaluation" VALUES ("101", "2020");
INSERT INTO "evaluation" VALUES ("101", "2021");
INSERT INTO "evaluation" VALUES ("110", "2019");
INSERT INTO "evaluation" VALUES ("115", "2021");
INSERT INTO "evaluation" VALUES ("120", "2022");
INSERT INTO "evaluation" VALUES ("130", "2020");
INSERT INTO "evaluation" VALUES ("130", "2021");
INSERT INTO "evaluation" VALUES ("140", "2018");
INSERT INTO "evaluation" VALUES ("150", "2022");
INSERT INTO "evaluation" VALUES ("165", "2021");
INSERT INTO "evaluation" VALUES ("175", "2020");
INSERT INTO "hiring" VALUES ("101");
INSERT INTO "hiring" VALUES ("103");
INSERT INTO "hiring" VALUES ("110");
INSERT INTO "hiring" VALUES ("115");
INSERT INTO "hiring" VALUES ("120");
INSERT INTO "hiring" VALUES ("125");
INSERT INTO "hiring" VALUES ("130");
INSERT INTO "hiring" VALUES ("135");
INSERT INTO "hiring" VALUES ("140");
INSERT INTO "hiring" VALUES ("145");
INSERT INTO "hiring" VALUES ("150");
INSERT INTO "hiring" VALUES ("155");
INSERT INTO "hiring" VALUES ("160");
INSERT INTO "hiring" VALUES ("165");
INSERT INTO "hiring" VALUES ("170");
INSERT INTO "hiring" VALUES ("175");
INSERT INTO "hiring" VALUES ("180");