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" (
"Shop_ID" INT,
"Employee_ID" INT,
PRIMARY KEY ("Employee_ID"),
FOREIGN KEY ("Employee_ID") REFERENCES "employee"("Employee_ID")
);





INSERT INTO "employee" VALUES ("1");
INSERT INTO "employee" VALUES ("2");
INSERT INTO "employee" VALUES ("3");
INSERT INTO "employee" VALUES ("4");
INSERT INTO "employee" VALUES ("5");
INSERT INTO "employee" VALUES ("6");
INSERT INTO "employee" VALUES ("7");
INSERT INTO "employee" VALUES ("8");
INSERT INTO "employee" VALUES ("9");
INSERT INTO "employee" VALUES ("10");
INSERT INTO "evaluation" VALUES ("1", "2020");
INSERT INTO "evaluation" VALUES ("1", "2021");
INSERT INTO "evaluation" VALUES ("2", "2019");
INSERT INTO "evaluation" VALUES ("3", "2022");
INSERT INTO "evaluation" VALUES ("4", "2020");
INSERT INTO "evaluation" VALUES ("5", "2021");
INSERT INTO "evaluation" VALUES ("6", "2019");
INSERT INTO "evaluation" VALUES ("7", "2022");
INSERT INTO "evaluation" VALUES ("8", "2020");
INSERT INTO "evaluation" VALUES ("9", "2021");
INSERT INTO "hiring" VALUES ("101", "1");
INSERT INTO "hiring" VALUES ("101", "2");
INSERT INTO "hiring" VALUES ("102", "3");
INSERT INTO "hiring" VALUES ("103", "4");
INSERT INTO "hiring" VALUES ("104", "5");
INSERT INTO "hiring" VALUES ("105", "6");
INSERT INTO "hiring" VALUES ("106", "7");
INSERT INTO "hiring" VALUES ("107", "8");
INSERT INTO "hiring" VALUES ("108", "9");
INSERT INTO "hiring" VALUES ("109", "10");