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 "evaluation" (
"Employee_ID" TEXT,
"Year_awarded" TEXT,
"Bonus" FLOAT,
PRIMARY KEY ("Employee_ID", "Year_awarded")
);

CREATE TABLE "hiring" (
"Employee_ID" INT,
PRIMARY KEY ("Employee_ID"),
FOREIGN KEY ("Employee_ID") REFERENCES "employee"("Employee_ID")
);

CREATE TABLE "shop" (
"Shop_ID" INT,
"Name" TEXT,
"Location" TEXT,
"District" 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 "evaluation" VALUES ("1", "2020", "1500.00");
INSERT INTO "evaluation" VALUES ("1", "2021", "1800.00");
INSERT INTO "evaluation" VALUES ("2", "2020", "1200.00");
INSERT INTO "evaluation" VALUES ("3", "2021", "2000.00");
INSERT INTO "evaluation" VALUES ("4", "2019", "1100.00");
INSERT INTO "evaluation" VALUES ("5", "2020", "1300.00");
INSERT INTO "evaluation" VALUES ("6", "2021", "1700.00");
INSERT INTO "evaluation" VALUES ("7", "2019", "900.00");
INSERT INTO "evaluation" VALUES ("8", "2020", "1600.00");
INSERT INTO "evaluation" VALUES ("9", "2021", "1400.00");
INSERT INTO "evaluation" VALUES ("10", "2020", "1000.00");
INSERT INTO "hiring" VALUES ("1");
INSERT INTO "hiring" VALUES ("2");
INSERT INTO "hiring" VALUES ("3");
INSERT INTO "hiring" VALUES ("4");
INSERT INTO "hiring" VALUES ("5");
INSERT INTO "hiring" VALUES ("6");
INSERT INTO "hiring" VALUES ("7");
INSERT INTO "hiring" VALUES ("8");
INSERT INTO "hiring" VALUES ("9");
INSERT INTO "hiring" VALUES ("10");
INSERT INTO "shop" VALUES ("1", "Tech World", "New York", "Manhattan", "250");
INSERT INTO "shop" VALUES ("2", "Gadget Hub", "Los Angeles", "Downtown", "300");
INSERT INTO "shop" VALUES ("3", "ElectroMart", "Chicago", "Loop", "150");
INSERT INTO "shop" VALUES ("4", "Device Center", "Houston", "Midtown", "300");
INSERT INTO "shop" VALUES ("5", "Smart Shop", "Phoenix", "Central City", "200");
INSERT INTO "shop" VALUES ("6", "Digital Plaza", "Philadelphia", "Old City", "180");
INSERT INTO "shop" VALUES ("7", "Techie Store", "San Antonio", "Alamo Heights", "300");
INSERT INTO "shop" VALUES ("8", "Gizmo Gallery", "San Diego", "Gaslamp Quarter", "100");
INSERT INTO "shop" VALUES ("9", "Electronix", "Dallas", "Deep Ellum", "300");
INSERT INTO "shop" VALUES ("10", "Innovatech", "San Jose", "Downtown", "50");