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 UNIQUE,
"District" TEXT,
"Number_products" INT,
"Manager_name" TEXT,
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", "2022", "1500.00");
INSERT INTO "evaluation" VALUES ("2", "2022", "1200.00");
INSERT INTO "evaluation" VALUES ("3", "2022", "1300.00");
INSERT INTO "evaluation" VALUES ("4", "2022", "1100.00");
INSERT INTO "evaluation" VALUES ("5", "2022", "1400.00");
INSERT INTO "evaluation" VALUES ("6", "2022", "1250.00");
INSERT INTO "evaluation" VALUES ("7", "2022", "1350.00");
INSERT INTO "evaluation" VALUES ("8", "2022", "1000.00");
INSERT INTO "evaluation" VALUES ("9", "2022", "900.00");
INSERT INTO "evaluation" VALUES ("10", "2022", "1600.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 ("101", "Downtown", "0", "Alice Johnson");
INSERT INTO "shop" VALUES ("102", "Uptown", "5", "Bob Smith");
INSERT INTO "shop" VALUES ("103", "Midtown", "10", "Carol White");
INSERT INTO "shop" VALUES ("104", "Suburb", "3", "David Brown");
INSERT INTO "shop" VALUES ("105", "Industrial", "50", "Eve Davis");
INSERT INTO "shop" VALUES ("106", "Downtown", "50", "Frank Miller");
INSERT INTO "shop" VALUES ("107", "Uptown", "49", "Grace Wilson");
INSERT INTO "shop" VALUES ("108", "Midtown", "50", "Hank Moore");
INSERT INTO "shop" VALUES ("109", "Suburb", "1", "Ivy Taylor");
INSERT INTO "shop" VALUES ("110", "Industrial", "2", "Jack Anderson");