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

CREATE TABLE "evaluation" (
"Employee_ID" TEXT,
"Year_awarded" TEXT,
"Bonus" FLOAT,
PRIMARY KEY ("Employee_ID", "Year_awarded")
);

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

CREATE TABLE "shop" (
"Shop_ID" INT UNIQUE,
"Name" TEXT,
"Location" TEXT,
PRIMARY KEY ("Shop_ID")
);





INSERT INTO "employee" VALUES ("1", "Alice Smith");
INSERT INTO "employee" VALUES ("2", "Bob Johnson");
INSERT INTO "employee" VALUES ("3", "Charlie Brown");
INSERT INTO "employee" VALUES ("4", "Diana Prince");
INSERT INTO "employee" VALUES ("5", "Eve Adams");
INSERT INTO "employee" VALUES ("6", "Frank White");
INSERT INTO "employee" VALUES ("7", "Grace Lee");
INSERT INTO "employee" VALUES ("8", "Henry Green");
INSERT INTO "employee" VALUES ("9", "Ivy King");
INSERT INTO "employee" VALUES ("10", "Jack Black");
INSERT INTO "employee" VALUES ("11", "Karen Hall");
INSERT INTO "employee" VALUES ("12", "Liam Scott");
INSERT INTO "employee" VALUES ("13", "Mia Taylor");
INSERT INTO "employee" VALUES ("14", "Noah Clark");
INSERT INTO "employee" VALUES ("15", "Olivia Lewis");
INSERT INTO "evaluation" VALUES ("1", "2022", "1500.0");
INSERT INTO "evaluation" VALUES ("2", "2022", "1200.0");
INSERT INTO "evaluation" VALUES ("3", "2022", "1800.0");
INSERT INTO "evaluation" VALUES ("4", "2022", "1000.0");
INSERT INTO "evaluation" VALUES ("5", "2022", "2000.0");
INSERT INTO "evaluation" VALUES ("6", "2022", "1300.0");
INSERT INTO "evaluation" VALUES ("7", "2022", "1600.0");
INSERT INTO "evaluation" VALUES ("8", "2022", "1100.0");
INSERT INTO "evaluation" VALUES ("9", "2022", "1900.0");
INSERT INTO "evaluation" VALUES ("10", "2022", "1400.0");
INSERT INTO "evaluation" VALUES ("1", "2023", "1600.0");
INSERT INTO "evaluation" VALUES ("2", "2023", "1300.0");
INSERT INTO "evaluation" VALUES ("3", "2023", "1900.0");
INSERT INTO "evaluation" VALUES ("4", "2023", "1100.0");
INSERT INTO "evaluation" VALUES ("5", "2023", "2100.0");
INSERT INTO "shop" VALUES ("101", "Tech Haven", "New York");
INSERT INTO "shop" VALUES ("102", "Gadget Galaxy", "Los Angeles");
INSERT INTO "shop" VALUES ("103", "Electronic Emporium", "Chicago");
INSERT INTO "shop" VALUES ("104", "Digital Domain", "Houston");
INSERT INTO "shop" VALUES ("105", "Future Store", "Miami");
INSERT INTO "hiring" VALUES ("101", "1");
INSERT INTO "hiring" VALUES ("101", "2");
INSERT INTO "hiring" VALUES ("101", "3");
INSERT INTO "hiring" VALUES ("101", "4");
INSERT INTO "hiring" VALUES ("101", "5");
INSERT INTO "hiring" VALUES ("102", "6");
INSERT INTO "hiring" VALUES ("102", "7");
INSERT INTO "hiring" VALUES ("102", "8");
INSERT INTO "hiring" VALUES ("103", "9");
INSERT INTO "hiring" VALUES ("103", "10");
INSERT INTO "hiring" VALUES ("103", "11");
INSERT INTO "hiring" VALUES ("104", "12");
INSERT INTO "hiring" VALUES ("104", "13");
INSERT INTO "hiring" VALUES ("105", "14");
INSERT INTO "hiring" VALUES ("105", "15");