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" (
"Diagnosis" TEXT
);

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



INSERT INTO "Examination" VALUES ("DVT");
INSERT INTO "Examination" VALUES ("PE");
INSERT INTO "Examination" VALUES ("None");
INSERT INTO "Patient" VALUES ("1", "F", "1925-05-12", "2023-01-10", "DVT");
INSERT INTO "Patient" VALUES ("2", "M", "1940-07-23", "2023-01-11", "PE");
INSERT INTO "Patient" VALUES ("3", "F", "1935-03-30", "2023-01-12", "None");
INSERT INTO "Patient" VALUES ("4", "F", "1929-11-15", "2023-01-13", "DVT");
INSERT INTO "Patient" VALUES ("5", "M", "1932-08-05", "2023-01-14", "None");
INSERT INTO "Patient" VALUES ("6", "F", "1945-12-01", "2023-01-15", "PE");
INSERT INTO "Patient" VALUES ("7", "F", "1930-01-01", "2023-01-16", "None");
INSERT INTO "Patient" VALUES ("8", "F", "1931-06-20", "2023-01-17", "DVT");
INSERT INTO "Patient" VALUES ("9", "M", "1928-04-10", "2023-01-18", "PE");
INSERT INTO "Patient" VALUES ("10", "F", "1950-09-09", "2023-01-19", "None");
INSERT INTO "Patient" VALUES ("11", "F", "1920-02-28", "2023-01-20", "DVT");
INSERT INTO "Patient" VALUES ("12", "M", "1938-10-10", "2023-01-21", "None");
INSERT INTO "Patient" VALUES ("13", "F", "1933-07-07", "2023-01-22", "PE");
INSERT INTO "Patient" VALUES ("14", "F", "1927-12-12", "2023-01-23", "None");
INSERT INTO "Patient" VALUES ("15", "M", "1942-05-05", "2023-01-24", "DVT");