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

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





INSERT INTO "employee" VALUES ("1", "New York");
INSERT INTO "employee" VALUES ("2", "Los Angeles");
INSERT INTO "employee" VALUES ("3", "Chicago");
INSERT INTO "employee" VALUES ("4", "Houston");
INSERT INTO "employee" VALUES ("5", "Phoenix");
INSERT INTO "employee" VALUES ("6", "Philadelphia");
INSERT INTO "employee" VALUES ("7", "San Antonio");
INSERT INTO "employee" VALUES ("8", "San Diego");
INSERT INTO "employee" VALUES ("9", "Dallas");
INSERT INTO "employee" VALUES ("10", "San Jose");
INSERT INTO "shop" VALUES ("101", "Tech Haven", "150");
INSERT INTO "shop" VALUES ("102", "Gadget World", "200");
INSERT INTO "shop" VALUES ("103", "Home Essentials", "120");
INSERT INTO "shop" VALUES ("104", "Fashion Hub", "180");
INSERT INTO "shop" VALUES ("105", "Book Nook", "90");
INSERT INTO "shop" VALUES ("106", "Toy Land", "200");
INSERT INTO "shop" VALUES ("107", "Sports Central", "160");
INSERT INTO "shop" VALUES ("108", "Beauty Spot", "140");
INSERT INTO "shop" VALUES ("109", "Pet Paradise", "110");
INSERT INTO "shop" VALUES ("110", "Garden Goods", "130");
INSERT INTO "hiring" VALUES ("101", "1", "2020-01-15");
INSERT INTO "hiring" VALUES ("102", "2", "2019-03-22");
INSERT INTO "hiring" VALUES ("103", "3", "2021-07-01");
INSERT INTO "hiring" VALUES ("104", "4", "2018-11-30");
INSERT INTO "hiring" VALUES ("105", "5", "2020-05-20");
INSERT INTO "hiring" VALUES ("106", "6", "2019-08-14");
INSERT INTO "hiring" VALUES ("107", "7", "2021-02-10");
INSERT INTO "hiring" VALUES ("108", "8", "2020-12-05");
INSERT INTO "hiring" VALUES ("109", "9", "2019-09-17");
INSERT INTO "hiring" VALUES ("110", "10", "2021-04-25");