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", "Chicago");
INSERT INTO "employee" VALUES ("4", "Houston");
INSERT INTO "employee" VALUES ("5", "Phoenix");
INSERT INTO "employee" VALUES ("6", "Philadelphia");
INSERT INTO "employee" VALUES ("7", "San Antonio");
INSERT INTO "employee" VALUES ("8", "San Diego");
INSERT INTO "employee" VALUES ("9", "Dallas");
INSERT INTO "employee" VALUES ("10", "San Jose");
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", "Philadelphia");
INSERT INTO "shop" VALUES ("107", "San Antonio");
INSERT INTO "shop" VALUES ("108", "San Diego");
INSERT INTO "shop" VALUES ("109", "Dallas");
INSERT INTO "shop" VALUES ("110", "San Jose");
INSERT INTO "shop" VALUES ("111", "Austin");
INSERT INTO "shop" VALUES ("112", "Jacksonville");
INSERT INTO "hiring" VALUES ("101", "1");
INSERT INTO "hiring" VALUES ("102", "2");
INSERT INTO "hiring" VALUES ("103", "3");
INSERT INTO "hiring" VALUES ("104", "4");
INSERT INTO "hiring" VALUES ("105", "5");
INSERT INTO "hiring" VALUES ("106", "6");
INSERT INTO "hiring" VALUES ("107", "7");
INSERT INTO "hiring" VALUES ("108", "8");
INSERT INTO "hiring" VALUES ("109", "9");
INSERT INTO "hiring" VALUES ("110", "10");