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", "2019", "1500.00");
INSERT INTO "evaluation" VALUES ("1", "2020", "1800.50");
INSERT INTO "evaluation" VALUES ("2", "2019", "1200.00");
INSERT INTO "evaluation" VALUES ("2", "2021", "1300.75");
INSERT INTO "evaluation" VALUES ("3", "2020", "0.00");
INSERT INTO "evaluation" VALUES ("4", "2018", "2000.00");
INSERT INTO "evaluation" VALUES ("5", "2019", "500.00");
INSERT INTO "evaluation" VALUES ("5", "2020", "700.00");
INSERT INTO "evaluation" VALUES ("6", "2021", "0.00");
INSERT INTO "evaluation" VALUES ("7", "2019", "2500.00");
INSERT INTO "evaluation" VALUES ("8", "2020", "3000.00");
INSERT INTO "evaluation" VALUES ("9", "2021", "1000.00");
INSERT INTO "evaluation" VALUES ("10", "2019", "0.00");
INSERT INTO "hiring" VALUES ("1", "2017-05-01");
INSERT INTO "hiring" VALUES ("2", "2018-06-15");
INSERT INTO "hiring" VALUES ("3", "2019-07-20");
INSERT INTO "hiring" VALUES ("4", "2016-03-10");
INSERT INTO "hiring" VALUES ("5", "2017-11-30");
INSERT INTO "hiring" VALUES ("6", "2020-01-05");
INSERT INTO "hiring" VALUES ("7", "2015-12-12");
INSERT INTO "hiring" VALUES ("8", "2018-08-08");
INSERT INTO "hiring" VALUES ("9", "2019-09-09");
INSERT INTO "hiring" VALUES ("10", "2020-10-10");
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");