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 "employee" VALUES ("1", "New York");
INSERT INTO "employee" VALUES ("2", "Los Angeles");
INSERT INTO "employee" VALUES ("3", "New York");
INSERT INTO "employee" VALUES ("4", "Chicago");
INSERT INTO "employee" VALUES ("5", "Los Angeles");
INSERT INTO "employee" VALUES ("6", "Chicago");
INSERT INTO "employee" VALUES ("7", "Houston");
INSERT INTO "employee" VALUES ("8", "Houston");
INSERT INTO "employee" VALUES ("9", "Phoenix");
INSERT INTO "employee" VALUES ("10", "Phoenix");
INSERT INTO "shop" VALUES ("101", "New York");
INSERT INTO "shop" VALUES ("102", "Los Angeles");
INSERT INTO "shop" VALUES ("103", "Chicago");
INSERT INTO "shop" VALUES ("104", "Houston");
INSERT INTO "shop" VALUES ("105", "Phoenix");
INSERT INTO "shop" VALUES ("106", "New York");
INSERT INTO "shop" VALUES ("107", "Los Angeles");
INSERT INTO "shop" VALUES ("108", "Chicago");
INSERT INTO "shop" VALUES ("109", "Houston");
INSERT INTO "shop" VALUES ("110", "Miami");
INSERT INTO "hiring" VALUES ("101", "1");
INSERT INTO "hiring" VALUES ("102", "2");
INSERT INTO "hiring" VALUES ("106", "3");
INSERT INTO "hiring" VALUES ("103", "4");
INSERT INTO "hiring" VALUES ("107", "5");
INSERT INTO "hiring" VALUES ("108", "6");
INSERT INTO "hiring" VALUES ("104", "7");
INSERT INTO "hiring" VALUES ("109", "8");
INSERT INTO "hiring" VALUES ("105", "9");
INSERT INTO "hiring" VALUES ("110", "10");