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

CREATE TABLE "evaluation" (
"Employee_ID" TEXT,
"Year_awarded" TEXT,
"Bonus" FLOAT,
PRIMARY KEY ("Employee_ID", "Year_awarded"),
FOREIGN KEY ("Employee_ID") REFERENCES "employee"("Employee_ID")
);

CREATE TABLE "hiring" (
"Employee_ID" INT,
"Start_from" TEXT,
PRIMARY KEY ("Employee_ID")
);

CREATE TABLE "shop" (
"Shop_ID" INT,
"Name" TEXT,
PRIMARY KEY ("Shop_ID")
);





INSERT INTO "employee" VALUES ("1", "Alice Johnson");
INSERT INTO "employee" VALUES ("2", "Bob Smith");
INSERT INTO "employee" VALUES ("3", "Charlie Davis");
INSERT INTO "employee" VALUES ("4", "Diana Evans");
INSERT INTO "employee" VALUES ("5", "Ethan Brown");
INSERT INTO "employee" VALUES ("6", "Fiona Clark");
INSERT INTO "employee" VALUES ("7", "George Miller");
INSERT INTO "employee" VALUES ("8", "Hannah Wilson");
INSERT INTO "employee" VALUES ("9", "Ian Moore");
INSERT INTO "employee" VALUES ("10", "Julia Taylor");
INSERT INTO "evaluation" VALUES ("1", "2020", "1500.00");
INSERT INTO "evaluation" VALUES ("1", "2021", "1800.00");
INSERT INTO "evaluation" VALUES ("3", "2019", "1200.00");
INSERT INTO "evaluation" VALUES ("5", "2021", "2000.00");
INSERT INTO "evaluation" VALUES ("6", "2020", "0.00");
INSERT INTO "evaluation" VALUES ("7", "2022", "500.00");
INSERT INTO "evaluation" VALUES ("7", "2023", "700.00");
INSERT INTO "evaluation" VALUES ("9", "2021", "1000.00");
INSERT INTO "hiring" VALUES ("1", "2018-05-01");
INSERT INTO "hiring" VALUES ("2", "2019-07-15");
INSERT INTO "hiring" VALUES ("3", "2017-03-20");
INSERT INTO "hiring" VALUES ("4", "2020-01-10");
INSERT INTO "hiring" VALUES ("5", "2016-11-30");
INSERT INTO "hiring" VALUES ("6", "2019-12-05");
INSERT INTO "hiring" VALUES ("7", "2015-08-22");
INSERT INTO "hiring" VALUES ("8", "2021-06-18");
INSERT INTO "hiring" VALUES ("9", "2018-09-14");
INSERT INTO "hiring" VALUES ("10", "2022-02-28");
INSERT INTO "shop" VALUES ("1", "Downtown Store");
INSERT INTO "shop" VALUES ("2", "Uptown Store");
INSERT INTO "shop" VALUES ("3", "Suburban Store");
INSERT INTO "shop" VALUES ("4", "Mall Kiosk");
INSERT INTO "shop" VALUES ("5", "Airport Outlet");