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", "2019-03-15", "2020-01-10", "Deep Vein Thrombosis");
INSERT INTO "Patient" VALUES ("48474", "2018-07-22", "2019-11-05", "Pulmonary Embolism");
INSERT INTO "Patient" VALUES ("48475", "2020-02-10", "2020-12-01", "Superficial Thrombophlebitis");
INSERT INTO "Patient" VALUES ("48476", "2017-05-30", "2018-06-15", "Chronic Venous Insufficiency");
INSERT INTO "Patient" VALUES ("48477", "2019-11-20", "2020-02-20", "Deep Vein Thrombosis");
INSERT INTO "Examination" VALUES ("2019-03-15", "Deep Vein Thrombosis");
INSERT INTO "Examination" VALUES ("2019-04-10", "Pulmonary Embolism");
INSERT INTO "Examination" VALUES ("2020-02-10", "Superficial Thrombophlebitis");
INSERT INTO "Examination" VALUES ("2017-05-30", "Chronic Venous Insufficiency");
INSERT INTO "Examination" VALUES ("2019-11-20", "Deep Vein Thrombosis");