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", "Prince", "NY", "diana.p@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", "Lee", "VA", "grace.l@example.com");
INSERT INTO "Owners" VALUES ("8", "Henry", "Miller", "FL", "henry.m@example.com");
INSERT INTO "Owners" VALUES ("9", "Ivy", "Chen", "VA", "ivy.c@example.com");
INSERT INTO "Owners" VALUES ("10", "Jack", "Wilson", "WA", "jack.w@example.com");
INSERT INTO "Dogs" VALUES ("101", "1", "LAB", "Buddy");
INSERT INTO "Dogs" VALUES ("102", "2", "GSD", "Max");
INSERT INTO "Dogs" VALUES ("103", "3", "POO", "Daisy");
INSERT INTO "Dogs" VALUES ("104", "1", "GOL", "Lucy");
INSERT INTO "Dogs" VALUES ("105", "4", "BEA", "Rocky");
INSERT INTO "Dogs" VALUES ("106", "5", "CHI", "Bella");
INSERT INTO "Dogs" VALUES ("107", "3", "DACH", "Charlie");
INSERT INTO "Dogs" VALUES ("108", "6", "BUL", "Duke");
INSERT INTO "Dogs" VALUES ("109", "7", "SHI", "Molly");
INSERT INTO "Dogs" VALUES ("110", "1", "BOX", "Cooper");
INSERT INTO "Dogs" VALUES ("111", "9", "HUS", "Luna");
INSERT INTO "Dogs" VALUES ("112", "2", "ROT", "Bear");
INSERT INTO "Dogs" VALUES ("113", "5", "COR", "Sadie");
INSERT INTO "Dogs" VALUES ("114", "7", "AUS", "Bailey");
INSERT INTO "Dogs" VALUES ("115", "9", "PIT", "Zeus");