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" (
"Examination Date" DATE,
"Diagnosis" TEXT,
"Thrombosis" INT
);

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



INSERT INTO "Patient" VALUES ("1", "M", "1981-01-01", "BEHCET");
INSERT INTO "Patient" VALUES ("2", "M", "1981-12-31", "BEHCET");
INSERT INTO "Patient" VALUES ("3", "M", "1981-06-15", "OTHER");
INSERT INTO "Patient" VALUES ("4", "M", "1981-03-20", "BEHCET");
INSERT INTO "Patient" VALUES ("5", "M", "1981-11-05", "OTHER");
INSERT INTO "Patient" VALUES ("6", "M", "1980-12-31", "BEHCET");
INSERT INTO "Patient" VALUES ("7", "M", "1982-01-01", "BEHCET");
INSERT INTO "Patient" VALUES ("8", "F", "1981-07-07", "BEHCET");
INSERT INTO "Patient" VALUES ("9", "M", "1981-08-08", "OTHER");
INSERT INTO "Patient" VALUES ("10", "M", "1981-09-09", "OTHER");
INSERT INTO "Patient" VALUES ("11", "M", "1981-10-10", "BEHCET");
INSERT INTO "Patient" VALUES ("12", "M", "1981-05-05", "OTHER");
INSERT INTO "Patient" VALUES ("13", "M", "1981-04-04", "BEHCET");
INSERT INTO "Patient" VALUES ("14", "M", "1981-02-02", "OTHER");
INSERT INTO "Patient" VALUES ("15", "M", "1981-07-07", "OTHER");
INSERT INTO "Patient" VALUES ("16", "F", "1981-01-01", "OTHER");
INSERT INTO "Patient" VALUES ("17", "M", "1981-12-30", "BEHCET");
INSERT INTO "Patient" VALUES ("18", "M", "1981-03-03", "OTHER");
INSERT INTO "Patient" VALUES ("19", "M", "1981-06-06", "BEHCET");
INSERT INTO "Patient" VALUES ("20", "M", "1981-08-08", "OTHER");
INSERT INTO "Examination" VALUES ("1981-01-10", "BEHCET", "1");
INSERT INTO "Examination" VALUES ("1981-02-15", "OTHER", "0");
INSERT INTO "Examination" VALUES ("1981-03-20", "BEHCET", "1");
INSERT INTO "Examination" VALUES ("1981-04-25", "OTHER", "0");
INSERT INTO "Examination" VALUES ("1981-05-30", "BEHCET", "1");
INSERT INTO "Examination" VALUES ("1981-06-10", "OTHER", "0");
INSERT INTO "Examination" VALUES ("1981-07-15", "BEHCET", "1");
INSERT INTO "Examination" VALUES ("1981-08-20", "OTHER", "0");
INSERT INTO "Examination" VALUES ("1981-09-25", "BEHCET", "1");
INSERT INTO "Examination" VALUES ("1981-10-30", "OTHER", "0");
INSERT INTO "Examination" VALUES ("1981-11-05", "BEHCET", "1");
INSERT INTO "Examination" VALUES ("1981-12-10", "OTHER", "0");