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,
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", "150");
INSERT INTO "shop" VALUES ("2", "Uptown", "North", "300");
INSERT INTO "shop" VALUES ("3", "Midtown", "South", "50");
INSERT INTO "shop" VALUES ("4", "Suburb", "East", "500");
INSERT INTO "shop" VALUES ("5", "Riverside", "West", "75");
INSERT INTO "shop" VALUES ("6", "Lakeside", "West", "500");
INSERT INTO "shop" VALUES ("7", "Hilltop", "East", "50");
INSERT INTO "shop" VALUES ("8", "Oldtown", "South", "200");
INSERT INTO "shop" VALUES ("9", "Newtown", "North", "300");
INSERT INTO "shop" VALUES ("10", "Seaside", "East", "100");
INSERT INTO "hiring" VALUES ("1", "101");
INSERT INTO "hiring" VALUES ("1", "102");
INSERT INTO "hiring" VALUES ("2", "103");
INSERT INTO "hiring" VALUES ("3", "104");
INSERT INTO "hiring" VALUES ("4", "105");
INSERT INTO "hiring" VALUES ("5", "106");
INSERT INTO "hiring" VALUES ("6", "107");
INSERT INTO "hiring" VALUES ("7", "108");
INSERT INTO "hiring" VALUES ("8", "109");
INSERT INTO "hiring" VALUES ("9", "110");
INSERT INTO "hiring" VALUES ("10", "111");