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





INSERT INTO "Owners" VALUES ("1", "Alice", "Smith", "VA", "alice.smith@example.com");
INSERT INTO "Owners" VALUES ("2", "Bob", "Johnson", "CA", "bob.j@example.com");
INSERT INTO "Owners" VALUES ("3", "Charlie", "Brown", "VA", "charlie.b@example.com");
INSERT INTO "Owners" VALUES ("4", "Diana", "Miller", "NY", "diana.m@example.com");
INSERT INTO "Owners" VALUES ("5", "Eve", "Davis", "VA", "eve.d@example.com");
INSERT INTO "Owners" VALUES ("6", "Frank", "White", "TX", "frank.w@example.com");
INSERT INTO "Owners" VALUES ("7", "Grace", "Taylor", "VA", "grace.t@example.com");
INSERT INTO "Owners" VALUES ("8", "Henry", "Moore", "FL", "henry.m@example.com");
INSERT INTO "Owners" VALUES ("9", "Ivy", "Clark", "VA", "ivy.c@example.com");
INSERT INTO "Owners" VALUES ("10", "Jack", "Hall", "GA", "jack.h@example.com");
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", "3", "DACH", "Daisy");
INSERT INTO "Dogs" VALUES ("106", "4", "GOLD", "Charlie");
INSERT INTO "Dogs" VALUES ("107", "5", "LAB", "Rocky");
INSERT INTO "Dogs" VALUES ("108", "5", "GSD", "Duke");
INSERT INTO "Dogs" VALUES ("109", "7", "BEA", "Molly");
INSERT INTO "Dogs" VALUES ("110", "7", "POO", "Sophie");
INSERT INTO "Dogs" VALUES ("111", "9", "GOLD", "Cooper");
INSERT INTO "Dogs" VALUES ("112", "9", "LAB", "Bailey");
INSERT INTO "Dogs" VALUES ("113", "2", "BEA", "Sadie");
INSERT INTO "Dogs" VALUES ("114", "6", "GSD", "Zeus");
INSERT INTO "Dogs" VALUES ("115", "8", "POO", "Luna");