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

CREATE TABLE "hiring" (
"Shop_ID" INT,
"Employee_ID" INT,
"Is_full_time" BOOLEAN,
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 "employee" VALUES ("8", "Hannah Wilson");
INSERT INTO "employee" VALUES ("9", "Ian Moore");
INSERT INTO "employee" VALUES ("10", "Julia Taylor");
INSERT INTO "evaluation" VALUES ("1", "2021");
INSERT INTO "evaluation" VALUES ("1", "2022");
INSERT INTO "evaluation" VALUES ("2", "2020");
INSERT INTO "evaluation" VALUES ("4", "2021");
INSERT INTO "evaluation" VALUES ("5", "2022");
INSERT INTO "evaluation" VALUES ("5", "2023");
INSERT INTO "evaluation" VALUES ("7", "2021");
INSERT INTO "evaluation" VALUES ("7", "2022");
INSERT INTO "evaluation" VALUES ("7", "2023");
INSERT INTO "hiring" VALUES ("101", "1", "1");
INSERT INTO "hiring" VALUES ("102", "2", "0");
INSERT INTO "hiring" VALUES ("103", "3", "1");
INSERT INTO "hiring" VALUES ("101", "4", "1");
INSERT INTO "hiring" VALUES ("102", "5", "0");
INSERT INTO "hiring" VALUES ("103", "6", "1");
INSERT INTO "hiring" VALUES ("101", "7", "1");
INSERT INTO "hiring" VALUES ("102", "8", "0");
INSERT INTO "hiring" VALUES ("103", "9", "1");
INSERT INTO "hiring" VALUES ("101", "10", "0");