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),
"date_arrived" DATETIME,
PRIMARY KEY ("dog_id")
);

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





INSERT INTO "Dogs" VALUES ("1", "5", "2018-06-01", "20kg", "2023-01-15");
INSERT INTO "Dogs" VALUES ("2", "3", "2020-09-10", "15kg", "2023-02-20");
INSERT INTO "Dogs" VALUES ("3", "7", "2016-03-25", "25kg", "2022-12-05");
INSERT INTO "Dogs" VALUES ("4", "0", "2024-05-01", "5kg", "2024-05-10");
INSERT INTO "Dogs" VALUES ("5", "10", "2013-11-11", "30kg", "2023-06-01");
INSERT INTO "Dogs" VALUES ("6", "2", "2021-08-15", "10kg", "2023-07-20");
INSERT INTO "Dogs" VALUES ("7", "15", "2008-04-20", "40kg", "2022-11-11");
INSERT INTO "Dogs" VALUES ("8", "1", "2023-07-01", "8kg", "2023-07-15");
INSERT INTO "Dogs" VALUES ("9", "12", "2011-12-30", "35kg", "2023-03-03");
INSERT INTO "Dogs" VALUES ("10", "4", "2019-01-01", "18kg", "2023-04-25");
INSERT INTO "Treatments" VALUES ("1", "2023-01-20");
INSERT INTO "Treatments" VALUES ("2", "2023-02-25");
INSERT INTO "Treatments" VALUES ("3", "2023-03-15");
INSERT INTO "Treatments" VALUES ("4", "2023-04-10");
INSERT INTO "Treatments" VALUES ("5", "2023-05-05");
INSERT INTO "Treatments" VALUES ("6", "2023-06-20");
INSERT INTO "Treatments" VALUES ("7", "2023-07-25");