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

CREATE TABLE "shop" (
"Shop_ID" INT,
"Location" TEXT,
PRIMARY KEY ("Shop_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 Glenanne");
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", "2021", "5000.00");
INSERT INTO "evaluation" VALUES ("1", "2022", "7000.00");
INSERT INTO "evaluation" VALUES ("2", "2021", "3000.00");
INSERT INTO "evaluation" VALUES ("2", "2022", "4500.00");
INSERT INTO "evaluation" VALUES ("3", "2020", "10000.00");
INSERT INTO "evaluation" VALUES ("3", "2021", "2000.00");
INSERT INTO "evaluation" VALUES ("4", "2022", "10000.00");
INSERT INTO "evaluation" VALUES ("5", "2021", "7500.00");
INSERT INTO "evaluation" VALUES ("6", "2020", "10000.00");
INSERT INTO "evaluation" VALUES ("7", "2022", "9500.00");
INSERT INTO "evaluation" VALUES ("8", "2021", "10000.00");
INSERT INTO "evaluation" VALUES ("9", "2022", "10000.00");
INSERT INTO "evaluation" VALUES ("10", "2020", "8500.00");
INSERT INTO "hiring" VALUES ("1", "2019-05-01");
INSERT INTO "hiring" VALUES ("2", "2018-03-15");
INSERT INTO "hiring" VALUES ("3", "2020-07-20");
INSERT INTO "hiring" VALUES ("4", "2021-01-10");
INSERT INTO "hiring" VALUES ("5", "2017-11-30");
INSERT INTO "hiring" VALUES ("6", "2019-12-05");
INSERT INTO "hiring" VALUES ("7", "2022-02-14");
INSERT INTO "hiring" VALUES ("8", "2016-08-22");
INSERT INTO "hiring" VALUES ("9", "2015-09-17");
INSERT INTO "hiring" VALUES ("10", "2018-06-25");
INSERT INTO "shop" VALUES ("1", "New York");
INSERT INTO "shop" VALUES ("2", "Los Angeles");
INSERT INTO "shop" VALUES ("3", "Chicago");
INSERT INTO "shop" VALUES ("4", "Houston");
INSERT INTO "shop" VALUES ("5", "Phoenix");