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,
"City" TEXT,
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,
"District" TEXT,
"Number_products" INT,
PRIMARY KEY ("Shop_ID")
);





INSERT INTO "employee" VALUES ("1", "New York");
INSERT INTO "employee" VALUES ("2", "Los Angeles");
INSERT INTO "employee" VALUES ("3", "Chicago");
INSERT INTO "employee" VALUES ("4", "Houston");
INSERT INTO "employee" VALUES ("5", "Phoenix");
INSERT INTO "evaluation" VALUES ("1", "2020", "5000.00");
INSERT INTO "evaluation" VALUES ("1", "2021", "7000.00");
INSERT INTO "evaluation" VALUES ("2", "2020", "3000.00");
INSERT INTO "evaluation" VALUES ("3", "2021", "4500.00");
INSERT INTO "evaluation" VALUES ("4", "2020", "6000.00");
INSERT INTO "evaluation" VALUES ("5", "2021", "2000.00");
INSERT INTO "hiring" VALUES ("1", "2018-05-01");
INSERT INTO "hiring" VALUES ("2", "2019-07-15");
INSERT INTO "hiring" VALUES ("3", "2020-01-20");
INSERT INTO "hiring" VALUES ("4", "2017-11-30");
INSERT INTO "hiring" VALUES ("5", "2021-03-10");
INSERT INTO "shop" VALUES ("1", "North District", "2500");
INSERT INTO "shop" VALUES ("2", "North District", "15000");
INSERT INTO "shop" VALUES ("3", "South District", "2800");
INSERT INTO "shop" VALUES ("4", "South District", "2900");
INSERT INTO "shop" VALUES ("5", "East District", "12000");
INSERT INTO "shop" VALUES ("6", "East District", "800");
INSERT INTO "shop" VALUES ("7", "West District", "5000");
INSERT INTO "shop" VALUES ("8", "West District", "11000");
INSERT INTO "shop" VALUES ("9", "Central District", "1000");
INSERT INTO "shop" VALUES ("10", "Central District", "9999");