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,
"RVVT" TEXT,
"LAC" TEXT,
FOREIGN KEY ("ID") REFERENCES "Patient"("ID")
);

CREATE TABLE "Patient" (
"ID" INT UNIQUE,
"SEX" TEXT,
"Birthday" DATE,
PRIMARY KEY ("ID")
);



INSERT INTO "Patient" VALUES ("1", "M", "1980-05-20");
INSERT INTO "Patient" VALUES ("2", "F", "1995-12-15");
INSERT INTO "Patient" VALUES ("3", "M", "2000-01-01");
INSERT INTO "Patient" VALUES ("4", "F", "1975-07-30");
INSERT INTO "Patient" VALUES ("5", "M", "1960-11-11");
INSERT INTO "Patient" VALUES ("6", "F", "1988-03-05");
INSERT INTO "Patient" VALUES ("7", "M", "2003-09-09");
INSERT INTO "Patient" VALUES ("8", "F", "1950-06-25");
INSERT INTO "Examination" VALUES ("1", "+", "negative");
INSERT INTO "Examination" VALUES ("2", "-", "positive");
INSERT INTO "Examination" VALUES ("3", "+", "positive");
INSERT INTO "Examination" VALUES ("4", "-", "negative");
INSERT INTO "Examination" VALUES ("5", "+", "negative");
INSERT INTO "Examination" VALUES ("6", "-", "negative");
INSERT INTO "Examination" VALUES ("7", "+", "positive");
INSERT INTO "Examination" VALUES ("8", "-", "positive");