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 "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,
"District" TEXT,
"Number_products" INT,
"Manager_name" TEXT,
PRIMARY KEY ("Shop_ID")
);





INSERT INTO "shop" VALUES ("1", "Tech Haven", "Downtown", "Central", "1500", "Alice Smith");
INSERT INTO "shop" VALUES ("2", "Gadget Galaxy", "Uptown", "North", "2500", "Bob Johnson");
INSERT INTO "shop" VALUES ("3", "Electronic Emporium", "Suburbia", "South", "1000", "Charlie Brown");
INSERT INTO "shop" VALUES ("4", "Digital Den", "Mall", "East", "3000", "Diana Prince");
INSERT INTO "shop" VALUES ("5", "Future Finds", "Industrial Park", "West", "2000", "Eve Adams");
INSERT INTO "shop" VALUES ("6", "Mega Mart", "City Center", "Central", "3000", "Frank White");
INSERT INTO "shop" VALUES ("7", "Quick Picks", "Rural", "North", "500", "Grace Lee");
INSERT INTO "hiring" VALUES ("1", "101");
INSERT INTO "hiring" VALUES ("1", "102");
INSERT INTO "hiring" VALUES ("2", "201");
INSERT INTO "hiring" VALUES ("2", "202");
INSERT INTO "hiring" VALUES ("2", "203");
INSERT INTO "hiring" VALUES ("3", "301");
INSERT INTO "hiring" VALUES ("4", "401");
INSERT INTO "hiring" VALUES ("4", "402");
INSERT INTO "hiring" VALUES ("4", "403");
INSERT INTO "hiring" VALUES ("4", "404");
INSERT INTO "hiring" VALUES ("5", "501");
INSERT INTO "hiring" VALUES ("6", "601");
INSERT INTO "hiring" VALUES ("6", "602");
INSERT INTO "hiring" VALUES ("6", "603");
INSERT INTO "hiring" VALUES ("6", "604");
INSERT INTO "hiring" VALUES ("7", "701");