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 UNIQUE,
"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,
"Location" TEXT,
"Manager_name" 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", "New York");
INSERT INTO "employee" VALUES ("10", "Phoenix");
INSERT INTO "shop" VALUES ("101", "Downtown", "Alice Johnson");
INSERT INTO "shop" VALUES ("102", "Uptown", "Bob Smith");
INSERT INTO "shop" VALUES ("103", "Midtown", "Carol White");
INSERT INTO "shop" VALUES ("104", "Suburb", "David Brown");
INSERT INTO "hiring" VALUES ("101", "1");
INSERT INTO "hiring" VALUES ("102", "2");
INSERT INTO "hiring" VALUES ("101", "3");
INSERT INTO "hiring" VALUES ("103", "4");
INSERT INTO "hiring" VALUES ("102", "5");
INSERT INTO "hiring" VALUES ("104", "6");
INSERT INTO "hiring" VALUES ("103", "7");
INSERT INTO "hiring" VALUES ("104", "8");
INSERT INTO "hiring" VALUES ("101", "9");
INSERT INTO "hiring" VALUES ("102", "10");