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 Davis");
INSERT INTO "employee" VALUES ("4", "Diana Evans");
INSERT INTO "employee" VALUES ("5", "Ethan Brown");
INSERT INTO "employee" VALUES ("6", "Fiona Clark");
INSERT INTO "employee" VALUES ("7", "George Miller");
INSERT INTO "evaluation" VALUES ("1", "2018", "1500.00");
INSERT INTO "evaluation" VALUES ("1", "2019", "1600.00");
INSERT INTO "evaluation" VALUES ("1", "2020", "1700.00");
INSERT INTO "evaluation" VALUES ("2", "2018", "1200.00");
INSERT INTO "evaluation" VALUES ("2", "2019", "1300.00");
INSERT INTO "evaluation" VALUES ("3", "2019", "1400.00");
INSERT INTO "evaluation" VALUES ("3", "2020", "1500.00");
INSERT INTO "evaluation" VALUES ("3", "2021", "1600.00");
INSERT INTO "evaluation" VALUES ("3", "2022", "1700.00");
INSERT INTO "evaluation" VALUES ("4", "2020", "1100.00");
INSERT INTO "evaluation" VALUES ("5", "2018", "1000.00");
INSERT INTO "evaluation" VALUES ("5", "2019", "1050.00");
INSERT INTO "evaluation" VALUES ("6", "2021", "1150.00");
INSERT INTO "evaluation" VALUES ("7", "2022", "1250.00");
INSERT INTO "evaluation" VALUES ("7", "2023", "1300.00");
INSERT INTO "hiring" VALUES ("101", "1");
INSERT INTO "hiring" VALUES ("102", "2");
INSERT INTO "hiring" VALUES ("103", "3");
INSERT INTO "hiring" VALUES ("104", "4");
INSERT INTO "hiring" VALUES ("105", "5");
INSERT INTO "hiring" VALUES ("106", "6");
INSERT INTO "hiring" VALUES ("107", "7");