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,
"Start_from" TEXT,
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,
PRIMARY KEY ("Shop_ID")
);





INSERT INTO "shop" VALUES ("1", "Green Grocers", "Downtown", "North District", "150");
INSERT INTO "shop" VALUES ("2", "Tech Hub", "Midtown", "Central District", "300");
INSERT INTO "shop" VALUES ("3", "Book Nook", "Uptown", "East District", "120");
INSERT INTO "shop" VALUES ("4", "Fashion Point", "Downtown", "North District", "300");
INSERT INTO "shop" VALUES ("5", "Gadget World", "Midtown", "Central District", "250");
INSERT INTO "shop" VALUES ("6", "Home Essentials", "Suburb", "West District", "80");
INSERT INTO "shop" VALUES ("7", "Toy Land", "Uptown", "East District", "300");
INSERT INTO "shop" VALUES ("8", "Pet Paradise", "Suburb", "West District", "50");
INSERT INTO "shop" VALUES ("9", "Sports Central", "Downtown", "North District", "300");
INSERT INTO "shop" VALUES ("10", "Art Supplies", "Midtown", "Central District", "200");
INSERT INTO "hiring" VALUES ("1", "101", "2020-01-15");
INSERT INTO "hiring" VALUES ("2", "102", "2019-03-22");
INSERT INTO "hiring" VALUES ("3", "103", "2021-07-01");
INSERT INTO "hiring" VALUES ("4", "104", "2018-11-30");
INSERT INTO "hiring" VALUES ("5", "105", "2020-06-10");
INSERT INTO "hiring" VALUES ("6", "106", "2022-02-14");
INSERT INTO "hiring" VALUES ("7", "107", "2019-09-05");
INSERT INTO "hiring" VALUES ("8", "108", "2021-12-20");
INSERT INTO "hiring" VALUES ("9", "109", "2017-05-25");
INSERT INTO "hiring" VALUES ("10", "110", "2020-08-18");