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,
"Name" TEXT,
"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", "Houston");
INSERT INTO "employee" VALUES ("7", "New York");
INSERT INTO "employee" VALUES ("8", "Chicago");
INSERT INTO "employee" VALUES ("9", "Miami");
INSERT INTO "employee" VALUES ("10", "Los Angeles");
INSERT INTO "shop" VALUES ("1", "Tech Emporium", "New York");
INSERT INTO "shop" VALUES ("2", "Gadget Hub", "Los Angeles");
INSERT INTO "shop" VALUES ("3", "Electro World", "Chicago");
INSERT INTO "shop" VALUES ("4", "Digital Den", "Houston");
INSERT INTO "shop" VALUES ("5", "Future Store", "Miami");
INSERT INTO "shop" VALUES ("6", "Innovate Shop", "New York");
INSERT INTO "shop" VALUES ("7", "Byte Bazaar", "Los Angeles");
INSERT INTO "hiring" VALUES ("1", "1");
INSERT INTO "hiring" VALUES ("2", "2");
INSERT INTO "hiring" VALUES ("1", "3");
INSERT INTO "hiring" VALUES ("3", "4");
INSERT INTO "hiring" VALUES ("2", "5");
INSERT INTO "hiring" VALUES ("4", "6");
INSERT INTO "hiring" VALUES ("6", "7");
INSERT INTO "hiring" VALUES ("3", "8");
INSERT INTO "hiring" VALUES ("5", "9");
INSERT INTO "hiring" VALUES ("7", "10");