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),
"email_address" VARCHAR(50),
"cell_number" VARCHAR(20),
PRIMARY KEY ("owner_id")
);





INSERT INTO "Owners" VALUES ("1", "Alice", "alice@example.com", "555-1111");
INSERT INTO "Owners" VALUES ("2", "Bob", "bob@example.com", "555-2222");
INSERT INTO "Owners" VALUES ("3", "Charlie", "charlie@example.com", "555-3333");
INSERT INTO "Owners" VALUES ("4", "Diana", "diana@example.com", "555-4444");
INSERT INTO "Owners" VALUES ("5", "Eve", "eve@example.com", "555-5555");
INSERT INTO "Owners" VALUES ("6", "Frank", "frank@example.com", "555-6666");
INSERT INTO "Owners" VALUES ("7", "Grace", "grace@example.com", "555-7777");
INSERT INTO "Dogs" VALUES ("101", "1", "LAB", "Buddy");
INSERT INTO "Dogs" VALUES ("102", "1", "GSD", "Max");
INSERT INTO "Dogs" VALUES ("103", "2", "POO", "Bella");
INSERT INTO "Dogs" VALUES ("104", "3", "BEA", "Lucy");
INSERT INTO "Dogs" VALUES ("105", "4", "DACH", "Daisy");
INSERT INTO "Dogs" VALUES ("106", "5", "GOLD", "Charlie");
INSERT INTO "Dogs" VALUES ("107", "6", "BULL", "Rocky");
INSERT INTO "Dogs" VALUES ("108", "1", "CHI", "Milo");
INSERT INTO "Dogs" VALUES ("109", "2", "BOX", "Cooper");
INSERT INTO "Dogs" VALUES ("110", "7", "HUSK", "Luna");
INSERT INTO "Dogs" VALUES ("111", "7", "AUS", "Shadow");