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 "hiring" (
"Shop_ID" INT,
"Employee_ID" INT,
"Start_from" TEXT,
PRIMARY KEY ("Employee_ID"),
FOREIGN KEY ("Shop_ID") REFERENCES "shop"("Shop_ID")
);

CREATE TABLE "shop" (
"Shop_ID" INT,
"Location" TEXT,
"District" TEXT,
"Number_products" INT,
PRIMARY KEY ("Shop_ID")
);





INSERT INTO "shop" VALUES ("1", "Downtown", "North", "2500");
INSERT INTO "shop" VALUES ("2", "Uptown", "North", "15000");
INSERT INTO "shop" VALUES ("3", "Midtown", "South", "2800");
INSERT INTO "shop" VALUES ("4", "Eastside", "South", "12000");
INSERT INTO "shop" VALUES ("5", "Westend", "East", "5000");
INSERT INTO "shop" VALUES ("6", "Lakeside", "East", "11000");
INSERT INTO "shop" VALUES ("7", "Hilltop", "West", "2900");
INSERT INTO "shop" VALUES ("8", "Riverside", "West", "900");
INSERT INTO "shop" VALUES ("9", "Seaside", "Central", "10000");
INSERT INTO "shop" VALUES ("10", "Greenfield", "Central", "2999");
INSERT INTO "hiring" VALUES ("1", "101", "2020-01-15");
INSERT INTO "hiring" VALUES ("2", "102", "2019-03-22");
INSERT INTO "hiring" VALUES ("3", "103", "2021-07-01");
INSERT INTO "hiring" VALUES ("4", "104", "2018-11-30");
INSERT INTO "hiring" VALUES ("5", "105", "2022-05-10");
INSERT INTO "hiring" VALUES ("6", "106", "2020-09-17");
INSERT INTO "hiring" VALUES ("7", "107", "2019-12-05");
INSERT INTO "hiring" VALUES ("8", "108", "2021-02-20");
INSERT INTO "hiring" VALUES ("9", "109", "2022-01-25");
INSERT INTO "hiring" VALUES ("10", "110", "2020-06-14");