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

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

CREATE TABLE "hiring" (
"Employee_ID" INT,
"Start_from" TEXT,
PRIMARY KEY ("Employee_ID")
);

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





INSERT INTO "employee" VALUES ("1", "Alice", "30");
INSERT INTO "employee" VALUES ("2", "Bob", "25");
INSERT INTO "employee" VALUES ("3", "Charlie", "35");
INSERT INTO "employee" VALUES ("4", "David", "28");
INSERT INTO "employee" VALUES ("5", "Eve", "40");
INSERT INTO "employee" VALUES ("6", "Frank", "22");
INSERT INTO "employee" VALUES ("7", "Grace", "30");
INSERT INTO "employee" VALUES ("8", "Heidi", "25");
INSERT INTO "employee" VALUES ("9", "Ivan", "35");
INSERT INTO "employee" VALUES ("10", "Judy", "28");
INSERT INTO "evaluation" VALUES ("1", "2020", "1000.0");
INSERT INTO "evaluation" VALUES ("2", "2021", "1200.0");
INSERT INTO "evaluation" VALUES ("3", "2020", "1500.0");
INSERT INTO "evaluation" VALUES ("4", "2022", "800.0");
INSERT INTO "evaluation" VALUES ("5", "2021", "2000.0");
INSERT INTO "evaluation" VALUES ("1", "2021", "1100.0");
INSERT INTO "evaluation" VALUES ("2", "2022", "1300.0");
INSERT INTO "evaluation" VALUES ("6", "2022", "900.0");
INSERT INTO "evaluation" VALUES ("7", "2020", "1050.0");
INSERT INTO "evaluation" VALUES ("8", "2021", "1250.0");
INSERT INTO "hiring" VALUES ("1", "2019-01-15");
INSERT INTO "hiring" VALUES ("2", "2020-03-01");
INSERT INTO "hiring" VALUES ("3", "2018-07-20");
INSERT INTO "hiring" VALUES ("4", "2021-05-10");
INSERT INTO "hiring" VALUES ("5", "2017-11-01");
INSERT INTO "hiring" VALUES ("6", "2022-01-01");
INSERT INTO "hiring" VALUES ("7", "2019-02-01");
INSERT INTO "hiring" VALUES ("8", "2020-04-15");
INSERT INTO "hiring" VALUES ("9", "2018-08-01");
INSERT INTO "hiring" VALUES ("10", "2021-06-20");
INSERT INTO "shop" VALUES ("1", "Manager A");
INSERT INTO "shop" VALUES ("2", "Manager B");
INSERT INTO "shop" VALUES ("3", "Manager C");
INSERT INTO "shop" VALUES ("4", "Manager D");
INSERT INTO "shop" VALUES ("5", "Manager E");