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