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,
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 UNIQUE,
"Location" TEXT,
PRIMARY KEY ("Shop_ID")
);





INSERT INTO "employee" VALUES ("1");
INSERT INTO "employee" VALUES ("2");
INSERT INTO "employee" VALUES ("3");
INSERT INTO "employee" VALUES ("4");
INSERT INTO "employee" VALUES ("5");
INSERT INTO "employee" VALUES ("6");
INSERT INTO "employee" VALUES ("7");
INSERT INTO "employee" VALUES ("8");
INSERT INTO "employee" VALUES ("9");
INSERT INTO "employee" VALUES ("10");
INSERT INTO "evaluation" VALUES ("1", "2020", "1500.50");
INSERT INTO "evaluation" VALUES ("1", "2021", "-200.75");
INSERT INTO "evaluation" VALUES ("2", "2020", "0.00");
INSERT INTO "evaluation" VALUES ("2", "2022", "300.25");
INSERT INTO "evaluation" VALUES ("3", "2021", "1200.00");
INSERT INTO "evaluation" VALUES ("4", "2020", "500.10");
INSERT INTO "evaluation" VALUES ("4", "2021", "700.75");
INSERT INTO "evaluation" VALUES ("5", "2022", "0.00");
INSERT INTO "evaluation" VALUES ("6", "2021", "999.99");
INSERT INTO "evaluation" VALUES ("7", "2020", "250.50");
INSERT INTO "evaluation" VALUES ("7", "2022", "350.75");
INSERT INTO "evaluation" VALUES ("8", "2021", "-50.25");
INSERT INTO "evaluation" VALUES ("9", "2020", "0.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", "2017-11-30");
INSERT INTO "hiring" VALUES ("5", "2021-01-10");
INSERT INTO "hiring" VALUES ("6", "2019-09-05");
INSERT INTO "hiring" VALUES ("7", "2018-12-12");
INSERT INTO "hiring" VALUES ("8", "2020-02-25");
INSERT INTO "hiring" VALUES ("9", "2017-06-18");
INSERT INTO "hiring" VALUES ("10", "2022-04-01");
INSERT INTO "shop" VALUES ("101", "New York");
INSERT INTO "shop" VALUES ("102", "Los Angeles");
INSERT INTO "shop" VALUES ("103", "Chicago");
INSERT INTO "shop" VALUES ("104", "Houston");
INSERT INTO "shop" VALUES ("105", "Phoenix");