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", "Central", "150");
INSERT INTO "shop" VALUES ("2", "Uptown", "North", "300");
INSERT INTO "shop" VALUES ("3", "Suburbia", "West", "50");
INSERT INTO "shop" VALUES ("4", "Riverside", "East", "500");
INSERT INTO "shop" VALUES ("5", "Old Town", "Central", "75");
INSERT INTO "shop" VALUES ("6", "Lakeside", "South", "500");
INSERT INTO "shop" VALUES ("7", "Hilltop", "North", "10");
INSERT INTO "shop" VALUES ("8", "Market Square", "East", "250");
INSERT INTO "shop" VALUES ("9", "Greenfield", "West", "10");
INSERT INTO "shop" VALUES ("10", "Harbor", "South", "400");
INSERT INTO "hiring" VALUES ("1", "101");
INSERT INTO "hiring" VALUES ("2", "102");
INSERT INTO "hiring" VALUES ("3", "103");
INSERT INTO "hiring" VALUES ("4", "104");
INSERT INTO "hiring" VALUES ("5", "105");
INSERT INTO "hiring" VALUES ("6", "106");
INSERT INTO "hiring" VALUES ("7", "107");
INSERT INTO "hiring" VALUES ("8", "108");
INSERT INTO "hiring" VALUES ("9", "109");
INSERT INTO "hiring" VALUES ("10", "110");