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 UNIQUE,
"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", "Circuit City", "Industrial Park", "West", "500", "Eve Adams");
INSERT INTO "shop" VALUES ("6", "Future Finds", "City Center", "Central", "2000", "Frank White");
INSERT INTO "shop" VALUES ("7", "Innovate Hub", "Business District", "North", "1200", "Grace Lee");
INSERT INTO "shop" VALUES ("8", "Wired World", "Outskirts", "South", "800", "Henry Green");
INSERT INTO "shop" VALUES ("9", "Byte Bazaar", "Market Square", "East", "1800", "Ivy Black");
INSERT INTO "shop" VALUES ("10", "Pixel Palace", "Waterfront", "West", "2200", "Jack King");
INSERT INTO "hiring" VALUES ("1", "101");
INSERT INTO "hiring" VALUES ("2", "102");
INSERT INTO "hiring" VALUES ("3", "103");
INSERT INTO "hiring" VALUES ("4", "104");
INSERT INTO "hiring" VALUES ("5", "105");
INSERT INTO "hiring" VALUES ("6", "106");
INSERT INTO "hiring" VALUES ("7", "107");
INSERT INTO "hiring" VALUES ("8", "108");
INSERT INTO "hiring" VALUES ("9", "109");
INSERT INTO "hiring" VALUES ("10", "110");
INSERT INTO "hiring" VALUES ("1", "111");
INSERT INTO "hiring" VALUES ("2", "112");
INSERT INTO "hiring" VALUES ("3", "113");
INSERT INTO "hiring" VALUES ("4", "114");
INSERT INTO "hiring" VALUES ("5", "115");