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

CREATE TABLE "Laboratory" (
"ID" INT,
"Date" DATE,
"UN" INT,
"CRE" FLOAT,
"SSA" TEXT,
PRIMARY KEY ("ID", "Date")
);



INSERT INTO "Examination" VALUES ("1", "120", "Positive");
INSERT INTO "Examination" VALUES ("2", "85", "Negative");
INSERT INTO "Examination" VALUES ("3", "200", "Positive");
INSERT INTO "Examination" VALUES ("4", "150", "Negative");
INSERT INTO "Examination" VALUES ("5", "95", "Positive");
INSERT INTO "Examination" VALUES ("6", "180", "Negative");
INSERT INTO "Laboratory" VALUES ("1", "2024-01-10", "30", "1.2", "SSA_Positive");
INSERT INTO "Laboratory" VALUES ("2", "2024-01-11", "28", "1.6", "SSA_Negative");
INSERT INTO "Laboratory" VALUES ("3", "2024-01-12", "35", "1.4", "SSA_Positive");
INSERT INTO "Laboratory" VALUES ("4", "2024-01-13", "40", "1.7", "SSA_Negative");
INSERT INTO "Laboratory" VALUES ("5", "2024-01-14", "25", "1.3", "SSA_Positive");
INSERT INTO "Laboratory" VALUES ("6", "2024-01-15", "33", "1.49", "SSA_Negative");