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 "employee" (
"Employee_ID" INT,
"City" TEXT,
PRIMARY KEY ("Employee_ID")
);

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





INSERT INTO "shop" VALUES ("1", "New York");
INSERT INTO "shop" VALUES ("2", "Los Angeles");
INSERT INTO "shop" VALUES ("3", "Chicago");
INSERT INTO "shop" VALUES ("4", "Houston");
INSERT INTO "shop" VALUES ("5", "Phoenix");
INSERT INTO "shop" VALUES ("6", "Philadelphia");
INSERT INTO "shop" VALUES ("7", "San Antonio");
INSERT INTO "shop" VALUES ("8", "San Diego");
INSERT INTO "shop" VALUES ("9", "Dallas");
INSERT INTO "shop" VALUES ("10", "San Jose");
INSERT INTO "shop" VALUES ("11", "New York");
INSERT INTO "shop" VALUES ("12", "Chicago");
INSERT INTO "shop" VALUES ("13", "Austin");
INSERT INTO "shop" VALUES ("14", "Jacksonville");
INSERT INTO "shop" VALUES ("15", "Fort Worth");
INSERT INTO "shop" VALUES ("16", "Columbus");
INSERT INTO "shop" VALUES ("17", "Charlotte");
INSERT INTO "shop" VALUES ("18", "San Francisco");
INSERT INTO "shop" VALUES ("19", "Indianapolis");
INSERT INTO "shop" VALUES ("20", "Seattle");
INSERT INTO "employee" VALUES ("101", "New York");
INSERT INTO "employee" VALUES ("102", "Los Angeles");
INSERT INTO "employee" VALUES ("103", "Chicago");
INSERT INTO "employee" VALUES ("104", "Houston");
INSERT INTO "employee" VALUES ("105", "Phoenix");
INSERT INTO "employee" VALUES ("106", "Philadelphia");
INSERT INTO "employee" VALUES ("107", "San Antonio");
INSERT INTO "employee" VALUES ("108", "San Diego");
INSERT INTO "employee" VALUES ("109", "Dallas");
INSERT INTO "employee" VALUES ("110", "San Jose");
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");