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,
"ANA Pattern" TEXT,
"Diagnosis" TEXT
);

CREATE TABLE "Laboratory" (
"ID" INT,
"Date" DATE,
"GOT" INT,
"T-BIL" FLOAT,
"DNA" TEXT,
PRIMARY KEY ("ID", "Date")
);



INSERT INTO "Examination" VALUES ("1", "Homogeneous", "Thrombosis");
INSERT INTO "Examination" VALUES ("2", "Peripheral", "No Thrombosis");
INSERT INTO "Examination" VALUES ("3", "Speckled", "Thrombosis");
INSERT INTO "Examination" VALUES ("4", "Peripheral", "Thrombosis");
INSERT INTO "Examination" VALUES ("5", "Homogeneous", "No Thrombosis");
INSERT INTO "Examination" VALUES ("6", "Peripheral", "No Thrombosis");
INSERT INTO "Examination" VALUES ("7", "Nucleolar", "Thrombosis");
INSERT INTO "Examination" VALUES ("8", "Peripheral", "Thrombosis");
INSERT INTO "Examination" VALUES ("9", "Homogeneous", "No Thrombosis");
INSERT INTO "Examination" VALUES ("10", "Speckled", "Thrombosis");
INSERT INTO "Laboratory" VALUES ("1", "2023-01-15", "30", "1.5", "Positive");
INSERT INTO "Laboratory" VALUES ("2", "2023-01-16", "45", "2.1", "Negative");
INSERT INTO "Laboratory" VALUES ("3", "2023-01-17", "25", "1.8", "Positive");
INSERT INTO "Laboratory" VALUES ("4", "2023-01-18", "50", "2.5", "Negative");
INSERT INTO "Laboratory" VALUES ("5", "2023-01-19", "35", "1.2", "Positive");
INSERT INTO "Laboratory" VALUES ("6", "2023-01-20", "40", "2.0", "Negative");
INSERT INTO "Laboratory" VALUES ("7", "2023-01-21", "28", "1.9", "Positive");
INSERT INTO "Laboratory" VALUES ("8", "2023-01-22", "55", "3.0", "Negative");
INSERT INTO "Laboratory" VALUES ("9", "2023-01-23", "32", "1.6", "Positive");
INSERT INTO "Laboratory" VALUES ("10", "2023-01-24", "48", "2.2", "Negative");
INSERT INTO "Laboratory" VALUES ("2", "2023-02-01", "42", "1.9", "Negative");
INSERT INTO "Laboratory" VALUES ("4", "2023-02-02", "52", "1.8", "Negative");
INSERT INTO "Laboratory" VALUES ("6", "2023-02-03", "41", "2.1", "Negative");
INSERT INTO "Laboratory" VALUES ("8", "2023-02-04", "58", "2.8", "Negative");