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,
"Is_full_time" BOOLEAN,
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 World", "150");
INSERT INTO "shop" VALUES ("102", "Gadget Hub", "200");
INSERT INTO "shop" VALUES ("103", "Home Essentials", "120");
INSERT INTO "shop" VALUES ("104", "Fashion Point", "180");
INSERT INTO "shop" VALUES ("105", "Book Nook", "90");
INSERT INTO "shop" VALUES ("106", "Toy Land", "210");
INSERT INTO "shop" VALUES ("107", "Sports Arena", "130");
INSERT INTO "shop" VALUES ("108", "Beauty Bliss", "170");
INSERT INTO "shop" VALUES ("109", "Pet Paradise", "110");
INSERT INTO "shop" VALUES ("110", "Garden Goods", "140");
INSERT INTO "hiring" VALUES ("101", "1", "1");
INSERT INTO "hiring" VALUES ("102", "2", "0");
INSERT INTO "hiring" VALUES ("103", "3", "1");
INSERT INTO "hiring" VALUES ("104", "4", "0");
INSERT INTO "hiring" VALUES ("105", "5", "1");
INSERT INTO "hiring" VALUES ("106", "6", "1");
INSERT INTO "hiring" VALUES ("107", "7", "0");
INSERT INTO "hiring" VALUES ("108", "8", "1");
INSERT INTO "hiring" VALUES ("109", "9", "0");
INSERT INTO "hiring" VALUES ("110", "10", "1");