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 UNIQUE,
"Name" TEXT,
"Location" TEXT,
"District" TEXT,
PRIMARY KEY ("Shop_ID")
);





INSERT INTO "shop" VALUES ("1", "Shop A", "Downtown", "District 1");
INSERT INTO "shop" VALUES ("2", "Shop B", "Downtown", "District 1");
INSERT INTO "shop" VALUES ("3", "Shop C", "Uptown", "District 2");
INSERT INTO "shop" VALUES ("4", "Shop D", "Midtown", "District 3");
INSERT INTO "shop" VALUES ("5", "Shop E", "Uptown", "District 2");
INSERT INTO "shop" VALUES ("6", "Shop F", "Downtown", "District 4");
INSERT INTO "shop" VALUES ("7", "Shop G", "Suburb", "District 5");
INSERT INTO "shop" VALUES ("8", "Shop H", "Suburb", "District 5");
INSERT INTO "shop" VALUES ("9", "Shop I", "Midtown", "District 3");
INSERT INTO "shop" VALUES ("10", "Shop J", "Downtown", "District 1");
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");
INSERT INTO "hiring" VALUES ("1", "112");
INSERT INTO "hiring" VALUES ("3", "113");
INSERT INTO "hiring" VALUES ("7", "114");