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

CREATE TABLE "evaluation" (
"Employee_ID" TEXT,
"Year_awarded" TEXT,
"Bonus" FLOAT,
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")
);





INSERT INTO "employee" VALUES ("1", "Alice Johnson");
INSERT INTO "employee" VALUES ("2", "Bob Smith");
INSERT INTO "employee" VALUES ("3", "Charlie Lee");
INSERT INTO "employee" VALUES ("4", "Diana Prince");
INSERT INTO "employee" VALUES ("5", "Ethan Hunt");
INSERT INTO "employee" VALUES ("6", "Fiona Gallagher");
INSERT INTO "employee" VALUES ("7", "George Martin");
INSERT INTO "employee" VALUES ("8", "Hannah Baker");
INSERT INTO "employee" VALUES ("9", "Ian Curtis");
INSERT INTO "employee" VALUES ("10", "Julia Roberts");
INSERT INTO "evaluation" VALUES ("1", "2020", "1500.00");
INSERT INTO "evaluation" VALUES ("1", "2021", "1800.50");
INSERT INTO "evaluation" VALUES ("2", "2020", "1200.00");
INSERT INTO "evaluation" VALUES ("2", "2021", "0.00");
INSERT INTO "evaluation" VALUES ("3", "2019", "2000.00");
INSERT INTO "evaluation" VALUES ("3", "2020", "2100.75");
INSERT INTO "evaluation" VALUES ("4", "2021", "0.00");
INSERT INTO "evaluation" VALUES ("5", "2020", "500.00");
INSERT INTO "evaluation" VALUES ("6", "2019", "0.00");
INSERT INTO "evaluation" VALUES ("7", "2021", "3000.00");
INSERT INTO "evaluation" VALUES ("8", "2020", "0.00");
INSERT INTO "evaluation" VALUES ("9", "2021", "2500.00");
INSERT INTO "evaluation" VALUES ("10", "2020", "0.00");
INSERT INTO "evaluation" VALUES ("10", "2021", "1000.00");
INSERT INTO "hiring" VALUES ("101", "1");
INSERT INTO "hiring" VALUES ("102", "2");
INSERT INTO "hiring" VALUES ("103", "3");
INSERT INTO "hiring" VALUES ("101", "4");
INSERT INTO "hiring" VALUES ("102", "5");
INSERT INTO "hiring" VALUES ("103", "6");
INSERT INTO "hiring" VALUES ("101", "7");
INSERT INTO "hiring" VALUES ("102", "8");
INSERT INTO "hiring" VALUES ("103", "9");
INSERT INTO "hiring" VALUES ("101", "10");