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
);

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



INSERT INTO "Patient" VALUES ("48473", "2020-01-15", "2020-01-10", "Deep Vein Thrombosis");
INSERT INTO "Patient" VALUES ("48474", "2019-11-20", "2019-11-18", "Pulmonary Embolism");
INSERT INTO "Patient" VALUES ("48475", "2021-03-05", "2021-03-01", "Superficial Thrombophlebitis");
INSERT INTO "Patient" VALUES ("48476", "2020-06-10", "2020-06-08", "Chronic Venous Insufficiency");
INSERT INTO "Examination" VALUES ("2020-01-15", "Deep Vein Thrombosis");
INSERT INTO "Examination" VALUES ("2020-02-10", "Resolved");
INSERT INTO "Examination" VALUES ("2020-01-20", "Pulmonary Embolism");
INSERT INTO "Examination" VALUES ("2019-11-20", "Pulmonary Embolism");
INSERT INTO "Examination" VALUES ("2021-03-05", "Superficial Thrombophlebitis");
INSERT INTO "Examination" VALUES ("2021-04-01", "Improved");
INSERT INTO "Examination" VALUES ("2020-06-10", "Chronic Venous Insufficiency");
INSERT INTO "Examination" VALUES ("2020-07-01", "Stable");