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,
"owner_id" INT,
"breed_code" VARCHAR(10),
"name" VARCHAR(50),
PRIMARY KEY ("dog_id"),
FOREIGN KEY ("owner_id") REFERENCES "Owners"("owner_id")
);

CREATE TABLE "Owners" (
"owner_id" INT UNIQUE,
"first_name" VARCHAR(50),
"last_name" VARCHAR(50),
PRIMARY KEY ("owner_id")
);

CREATE TABLE "Professionals" (
"professional_id" INT,
PRIMARY KEY ("professional_id")
);





INSERT INTO "Owners" VALUES ("1", "Alice", "Smith");
INSERT INTO "Owners" VALUES ("2", "Bob", "Johnson");
INSERT INTO "Owners" VALUES ("3", "Charlie", "Brown");
INSERT INTO "Owners" VALUES ("4", "Diana", "Prince");
INSERT INTO "Owners" VALUES ("5", "Eve", "Adams");
INSERT INTO "Owners" VALUES ("6", "Frank", "White");
INSERT INTO "Owners" VALUES ("7", "Grace", "Taylor");
INSERT INTO "Dogs" VALUES ("1", "1", "LAB", "Buddy");
INSERT INTO "Dogs" VALUES ("2", "1", "GSD", "Max");
INSERT INTO "Dogs" VALUES ("3", "1", "POO", "Daisy");
INSERT INTO "Dogs" VALUES ("4", "2", "BEA", "Lucy");
INSERT INTO "Dogs" VALUES ("5", "2", "DACH", "Rocky");
INSERT INTO "Dogs" VALUES ("6", "3", "GOLD", "Bella");
INSERT INTO "Dogs" VALUES ("7", "3", "BOX", "Duke");
INSERT INTO "Dogs" VALUES ("8", "3", "SIBE", "Luna");
INSERT INTO "Dogs" VALUES ("9", "3", "BULL", "Cooper");
INSERT INTO "Dogs" VALUES ("10", "4", "CHI", "Milo");
INSERT INTO "Dogs" VALUES ("11", "5", "LAB", "Bailey");
INSERT INTO "Dogs" VALUES ("12", "5", "GSD", "Shadow");
INSERT INTO "Dogs" VALUES ("13", "6", "POO", "Zoe");
INSERT INTO "Dogs" VALUES ("14", "7", "BEA", "Oscar");
INSERT INTO "Dogs" VALUES ("15", "7", "DACH", "Penny");
INSERT INTO "Dogs" VALUES ("16", "7", "GOLD", "Rosie");
INSERT INTO "Dogs" VALUES ("17", "7", "BOX", "Bear");
INSERT INTO "Dogs" VALUES ("18", "7", "SIBE", "Koda");
INSERT INTO "Dogs" VALUES ("19", "7", "BULL", "Winston");
INSERT INTO "Dogs" VALUES ("20", "7", "CHI", "Gizmo");
INSERT INTO "Professionals" VALUES ("101");
INSERT INTO "Professionals" VALUES ("102");
INSERT INTO "Professionals" VALUES ("103");