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", "New York");
INSERT INTO "shop" VALUES ("5", "Houston");
INSERT INTO "shop" VALUES ("6", "Phoenix");
INSERT INTO "shop" VALUES ("7", "Philadelphia");
INSERT INTO "shop" VALUES ("8", "San Antonio");
INSERT INTO "shop" VALUES ("9", "San Diego");
INSERT INTO "shop" VALUES ("10", "Dallas");
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", "Austin");
INSERT INTO "employee" VALUES ("111", "New York");
INSERT INTO "employee" VALUES ("112", "Chicago");
INSERT INTO "employee" VALUES ("113", "Houston");
INSERT INTO "employee" VALUES ("114", "Phoenix");
INSERT INTO "employee" VALUES ("115", "San Diego");
INSERT INTO "employee" VALUES ("116", "Dallas");
INSERT INTO "employee" VALUES ("117", "Austin");
INSERT INTO "employee" VALUES ("118", "New York");
INSERT INTO "employee" VALUES ("119", "Los Angeles");
INSERT INTO "employee" VALUES ("120", "Chicago");
INSERT INTO "hiring" VALUES ("1", "101");
INSERT INTO "hiring" VALUES ("2", "102");
INSERT INTO "hiring" VALUES ("3", "103");
INSERT INTO "hiring" VALUES ("4", "111");
INSERT INTO "hiring" VALUES ("5", "104");
INSERT INTO "hiring" VALUES ("6", "105");
INSERT INTO "hiring" VALUES ("7", "106");
INSERT INTO "hiring" VALUES ("8", "107");
INSERT INTO "hiring" VALUES ("9", "108");
INSERT INTO "hiring" VALUES ("10", "109");
INSERT INTO "hiring" VALUES ("1", "118");
INSERT INTO "hiring" VALUES ("2", "119");
INSERT INTO "hiring" VALUES ("3", "112");
INSERT INTO "hiring" VALUES ("5", "113");
INSERT INTO "hiring" VALUES ("6", "114");
INSERT INTO "hiring" VALUES ("9", "115");
INSERT INTO "hiring" VALUES ("10", "116");
INSERT INTO "hiring" VALUES ("7", "117");