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 UNIQUE,
"breed_code" VARCHAR(10),
PRIMARY KEY ("dog_id")
);

CREATE TABLE "Treatments" (
"treatment_id" INT,
"dog_id" INT,
"professional_id" INT,
PRIMARY KEY ("treatment_id"),
FOREIGN KEY ("dog_id") REFERENCES "Dogs"("dog_id")
);





INSERT INTO "Dogs" VALUES ("1", "Labrador");
INSERT INTO "Dogs" VALUES ("2", "Beagle");
INSERT INTO "Dogs" VALUES ("3", "Poodle");
INSERT INTO "Dogs" VALUES ("4", "Bulldog");
INSERT INTO "Dogs" VALUES ("5", "Chihuahua");
INSERT INTO "Dogs" VALUES ("6", "Dachshund");
INSERT INTO "Dogs" VALUES ("7", "Boxer");
INSERT INTO "Dogs" VALUES ("8", "Shih Tzu");
INSERT INTO "Dogs" VALUES ("9", "Dalmatian");
INSERT INTO "Dogs" VALUES ("10", "Border Collie");
INSERT INTO "Treatments" VALUES ("101", "1", "201");
INSERT INTO "Treatments" VALUES ("102", "2", "202");
INSERT INTO "Treatments" VALUES ("103", "2", "203");
INSERT INTO "Treatments" VALUES ("104", "3", "201");
INSERT INTO "Treatments" VALUES ("105", "5", "204");
INSERT INTO "Treatments" VALUES ("106", "7", "205");
INSERT INTO "Treatments" VALUES ("107", "7", "206");
INSERT INTO "Treatments" VALUES ("108", "9", "202");
INSERT INTO "Treatments" VALUES ("109", "10", "207");