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 ("1", "2023", "1800.00");
INSERT INTO "evaluation" VALUES ("2", "2022", "1200.00");
INSERT INTO "evaluation" VALUES ("3", "2021", "2000.00");
INSERT INTO "evaluation" VALUES ("4", "2023", "1700.00");
INSERT INTO "evaluation" VALUES ("5", "2022", "1600.00");
INSERT INTO "evaluation" VALUES ("6", "2023", "1900.00");
INSERT INTO "evaluation" VALUES ("7", "2021", "1100.00");
INSERT INTO "evaluation" VALUES ("8", "2022", "1300.00");
INSERT INTO "evaluation" VALUES ("9", "2023", "1400.00");
INSERT INTO "evaluation" VALUES ("10", "2021", "1250.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", "North District", "500", "Alice Johnson");
INSERT INTO "shop" VALUES ("102", "South District", "750", "Bob Smith");
INSERT INTO "shop" VALUES ("103", "East District", "750", "Carol White");
INSERT INTO "shop" VALUES ("104", "West District", "300", "David Brown");
INSERT INTO "shop" VALUES ("105", "Central District", "450", "Eve Davis");
INSERT INTO "shop" VALUES ("106", "North District", "750", "Frank Miller");
INSERT INTO "shop" VALUES ("107", "South District", "200", "Grace Wilson");
INSERT INTO "shop" VALUES ("108", "East District", "600", "Hank Moore");
INSERT INTO "shop" VALUES ("109", "West District", "750", "Ivy Taylor");
INSERT INTO "shop" VALUES ("110", "Central District", "400", "Jack Anderson");