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,
"KCT" TEXT,
"RVVT" TEXT,
"LAC" TEXT
);

CREATE TABLE "Laboratory" (
"ID" INT,
"Date" DATE,
"CPK" INT,
"PT" FLOAT,
"APTT" INT,
"FG" FLOAT,
PRIMARY KEY ("ID", "Date")
);



INSERT INTO "Examination" VALUES ("1", "+", "−", "−");
INSERT INTO "Examination" VALUES ("2", "−", "−", "−");
INSERT INTO "Examination" VALUES ("3", "−", "+", "−");
INSERT INTO "Examination" VALUES ("4", "−", "−", "+");
INSERT INTO "Examination" VALUES ("5", "−", "−", "−");
INSERT INTO "Examination" VALUES ("6", "+", "+", "−");
INSERT INTO "Examination" VALUES ("7", "−", "−", "−");
INSERT INTO "Examination" VALUES ("8", "−", "−", "−");
INSERT INTO "Examination" VALUES ("9", "+", "−", "−");
INSERT INTO "Examination" VALUES ("10", "−", "−", "+");
INSERT INTO "Laboratory" VALUES ("1", "2024-01-10", "240", "12.5", "30", "2.1");
INSERT INTO "Laboratory" VALUES ("2", "2024-01-11", "260", "13.0", "28", "2.0");
INSERT INTO "Laboratory" VALUES ("3", "2024-01-12", "180", "11.5", "32", "1.9");
INSERT INTO "Laboratory" VALUES ("4", "2024-01-13", "249", "12.0", "29", "2.2");
INSERT INTO "Laboratory" VALUES ("5", "2024-01-14", "300", "14.0", "31", "2.3");
INSERT INTO "Laboratory" VALUES ("6", "2024-01-15", "245", "12.8", "27", "2.1");
INSERT INTO "Laboratory" VALUES ("7", "2024-01-16", "251", "13.2", "30", "2.0");
INSERT INTO "Laboratory" VALUES ("8", "2024-01-17", "100", "11.0", "33", "1.8");
INSERT INTO "Laboratory" VALUES ("9", "2024-01-18", "230", "12.3", "29", "2.4");
INSERT INTO "Laboratory" VALUES ("10", "2024-01-19", "255", "13.5", "28", "2.2");