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,
"Age" INT,
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" (
"Employee_ID" INT,
"Is_full_time" BOOLEAN,
PRIMARY KEY ("Employee_ID")
);

CREATE TABLE "shop" (
"Shop_ID" INT,
"District" TEXT,
PRIMARY KEY ("Shop_ID")
);





INSERT INTO "employee" VALUES ("1", "Alice Johnson", "34");
INSERT INTO "employee" VALUES ("2", "Bob Smith", "28");
INSERT INTO "employee" VALUES ("3", "Charlie Lee", "45");
INSERT INTO "employee" VALUES ("4", "Diana Prince", "30");
INSERT INTO "employee" VALUES ("5", "Ethan Hunt", "38");
INSERT INTO "employee" VALUES ("6", "Fiona Gallagher", "26");
INSERT INTO "employee" VALUES ("7", "George Martin", "50");
INSERT INTO "employee" VALUES ("8", "Hannah Baker", "29");
INSERT INTO "evaluation" VALUES ("1", "2022", "5000.00");
INSERT INTO "evaluation" VALUES ("1", "2023", "7000.00");
INSERT INTO "evaluation" VALUES ("2", "2022", "3000.00");
INSERT INTO "evaluation" VALUES ("3", "2021", "7000.00");
INSERT INTO "evaluation" VALUES ("3", "2023", "8500.00");
INSERT INTO "evaluation" VALUES ("4", "2023", "8500.00");
INSERT INTO "evaluation" VALUES ("5", "2022", "4000.00");
INSERT INTO "evaluation" VALUES ("6", "2023", "2000.00");
INSERT INTO "evaluation" VALUES ("7", "2023", "8500.00");
INSERT INTO "evaluation" VALUES ("8", "2021", "1000.00");
INSERT INTO "hiring" VALUES ("1", "1");
INSERT INTO "hiring" VALUES ("2", "0");
INSERT INTO "hiring" VALUES ("3", "1");
INSERT INTO "hiring" VALUES ("4", "1");
INSERT INTO "hiring" VALUES ("5", "0");
INSERT INTO "hiring" VALUES ("6", "1");
INSERT INTO "hiring" VALUES ("7", "0");
INSERT INTO "hiring" VALUES ("8", "1");
INSERT INTO "shop" VALUES ("101", "North");
INSERT INTO "shop" VALUES ("102", "South");
INSERT INTO "shop" VALUES ("103", "East");
INSERT INTO "shop" VALUES ("104", "West");