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 "Dogs" (
"dog_id" INT,
"age" VARCHAR(20),
"date_of_birth" DATETIME,
"weight" VARCHAR(20),
PRIMARY KEY ("dog_id")
);

CREATE TABLE "Treatments" (
"treatment_id" INT,
"date_of_treatment" DATETIME,
PRIMARY KEY ("treatment_id")
);





INSERT INTO "Dogs" VALUES ("1", "2", "2022-01-15", "15kg");
INSERT INTO "Dogs" VALUES ("2", "5", "2019-06-20", "20kg");
INSERT INTO "Dogs" VALUES ("3", "3", "2021-03-10", "18kg");
INSERT INTO "Dogs" VALUES ("4", "7", "2017-11-05", "25kg");
INSERT INTO "Dogs" VALUES ("5", "1", "2023-05-01", "12kg");
INSERT INTO "Dogs" VALUES ("6", "4", "2020-08-22", "22kg");
INSERT INTO "Dogs" VALUES ("7", "6", "2018-12-30", "19kg");
INSERT INTO "Dogs" VALUES ("8", "3", "2021-04-15", "17kg");
INSERT INTO "Dogs" VALUES ("9", "8", "2016-09-10", "30kg");
INSERT INTO "Dogs" VALUES ("10", "2", "2022-02-28", "14kg");
INSERT INTO "Treatments" VALUES ("1", "2023-01-10");
INSERT INTO "Treatments" VALUES ("2", "2023-02-15");
INSERT INTO "Treatments" VALUES ("3", "2023-03-20");
INSERT INTO "Treatments" VALUES ("4", "2023-04-25");
INSERT INTO "Treatments" VALUES ("5", "2023-05-30");