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 "Examination" (
"ID" INT,
"Diagnosis" TEXT,
"Symptoms" TEXT
);

CREATE TABLE "Laboratory" (
"ID" INT,
"Date" DATE,
"IGG" INT,
"IGA" INT,
"IGM" INT,
PRIMARY KEY ("ID", "Date")
);



INSERT INTO "Examination" VALUES ("1", "Thrombosis", "Headache, Dizziness");
INSERT INTO "Examination" VALUES ("2", "No Thrombosis", "NULL");
INSERT INTO "Examination" VALUES ("3", "Thrombosis", "Fatigue");
INSERT INTO "Examination" VALUES ("4", "No Thrombosis", "Mild headache");
INSERT INTO "Examination" VALUES ("5", "Thrombosis", "NULL");
INSERT INTO "Examination" VALUES ("6", "No Thrombosis", "Nausea");
INSERT INTO "Examination" VALUES ("7", "Thrombosis", "Blurred vision");
INSERT INTO "Examination" VALUES ("8", "No Thrombosis", "NULL");
INSERT INTO "Examination" VALUES ("9", "Thrombosis", "Shortness of breath");
INSERT INTO "Examination" VALUES ("10", "No Thrombosis", "Chest pain");
INSERT INTO "Laboratory" VALUES ("1", "2023-01-15", "1200", "150", "80");
INSERT INTO "Laboratory" VALUES ("2", "2023-01-16", "800", "100", "50");
INSERT INTO "Laboratory" VALUES ("3", "2023-01-17", "1800", "200", "120");
INSERT INTO "Laboratory" VALUES ("4", "2023-01-18", "950", "120", "70");
INSERT INTO "Laboratory" VALUES ("5", "2023-01-19", "2100", "250", "100");
INSERT INTO "Laboratory" VALUES ("6", "2023-01-20", "1100", "130", "60");
INSERT INTO "Laboratory" VALUES ("7", "2023-01-21", "1900", "180", "90");
INSERT INTO "Laboratory" VALUES ("8", "2023-01-22", "700", "90", "40");
INSERT INTO "Laboratory" VALUES ("9", "2023-01-23", "1500", "160", "85");
INSERT INTO "Laboratory" VALUES ("10", "2023-01-24", "1000", "140", "75");
INSERT INTO "Laboratory" VALUES ("1", "2023-02-01", "1300", "160", "85");
INSERT INTO "Laboratory" VALUES ("3", "2023-02-02", "900", "110", "55");
INSERT INTO "Laboratory" VALUES ("4", "2023-02-03", "1700", "190", "110");
INSERT INTO "Laboratory" VALUES ("6", "2023-02-04", "1050", "125", "65");
INSERT INTO "Laboratory" VALUES ("9", "2023-02-05", "2000", "220", "95");