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 Emporium", "Downtown", "Central", "500", "Alice Smith");
INSERT INTO "shop" VALUES ("2", "Gadget Hub", "Uptown", "North", "300", "Bob Johnson");
INSERT INTO "shop" VALUES ("3", "Electronic World", "Suburbia", "South", "750", "Charlie Brown");
INSERT INTO "shop" VALUES ("4", "Digital Den", "City Center", "Central", "200", "Diana Prince");
INSERT INTO "shop" VALUES ("5", "Future Tech", "West End", "West", "600", "Eve Adams");
INSERT INTO "shop" VALUES ("6", "Innovate Store", "East Side", "East", "450", "Frank White");
INSERT INTO "shop" VALUES ("7", "Gizmo Gallery", "Old Town", "Central", "100", "Grace Lee");
INSERT INTO "shop" VALUES ("8", "Connect Point", "New District", "North", "900", "Henry Green");
INSERT INTO "shop" VALUES ("9", "Smart Solutions", "Riverside", "South", "350", "Ivy Black");
INSERT INTO "shop" VALUES ("10", "Prime Electronics", "Industrial Park", "West", "800", "Jack King");
INSERT INTO "hiring" VALUES ("1", "101");
INSERT INTO "hiring" VALUES ("1", "102");
INSERT INTO "hiring" VALUES ("2", "201");
INSERT INTO "hiring" VALUES ("3", "301");
INSERT INTO "hiring" VALUES ("3", "302");
INSERT INTO "hiring" VALUES ("3", "303");
INSERT INTO "hiring" VALUES ("4", "401");
INSERT INTO "hiring" VALUES ("5", "501");
INSERT INTO "hiring" VALUES ("5", "502");
INSERT INTO "hiring" VALUES ("6", "601");
INSERT INTO "hiring" VALUES ("7", "701");
INSERT INTO "hiring" VALUES ("8", "801");
INSERT INTO "hiring" VALUES ("8", "802");
INSERT INTO "hiring" VALUES ("8", "803");
INSERT INTO "hiring" VALUES ("8", "804");
INSERT INTO "hiring" VALUES ("9", "901");
INSERT INTO "hiring" VALUES ("10", "1001");
INSERT INTO "hiring" VALUES ("10", "1002");