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





INSERT INTO "Owners" VALUES ("1", "Alice", "Smith", "New York");
INSERT INTO "Owners" VALUES ("2", "Bob", "Johnson", "Los Angeles");
INSERT INTO "Owners" VALUES ("3", "Charlie", "Williams", "Chicago");
INSERT INTO "Owners" VALUES ("4", "Diana", "Brown", "Houston");
INSERT INTO "Owners" VALUES ("5", "Ethan", "Jones", "Phoenix");
INSERT INTO "Owners" VALUES ("6", "Fiona", "Garcia", "Philadelphia");
INSERT INTO "Owners" VALUES ("7", "George", "Martinez", "San Antonio");
INSERT INTO "Owners" VALUES ("8", "Hannah", "Davis", "San Diego");
INSERT INTO "Owners" VALUES ("9", "Ian", "Rodriguez", "Dallas");
INSERT INTO "Owners" VALUES ("10", "Julia", "Miller", "San Jose");
INSERT INTO "Dogs" VALUES ("101", "1", "Labrador", "Buddy");
INSERT INTO "Dogs" VALUES ("102", "1", "Beagle", "Charlie");
INSERT INTO "Dogs" VALUES ("103", "2", "Poodle", "Max");
INSERT INTO "Dogs" VALUES ("104", "3", "Bulldog", "Rocky");
INSERT INTO "Dogs" VALUES ("105", "3", "Boxer", "Duke");
INSERT INTO "Dogs" VALUES ("106", "4", "Dachshund", "Oscar");
INSERT INTO "Dogs" VALUES ("107", "5", "Siberian", "Milo");
INSERT INTO "Dogs" VALUES ("108", "6", "Chihuahua", "Toby");
INSERT INTO "Dogs" VALUES ("109", "7", "Golden", "Bailey");
INSERT INTO "Dogs" VALUES ("110", "7", "Labrador", "Cooper");
INSERT INTO "Dogs" VALUES ("111", "8", "Pug", "Bear");
INSERT INTO "Dogs" VALUES ("112", "9", "Dalmatian", "Zeus");
INSERT INTO "Dogs" VALUES ("113", "10", "ShihTzu", "Lola");
INSERT INTO "Dogs" VALUES ("114", "10", "Beagle", "Sadie");
INSERT INTO "Dogs" VALUES ("115", "10", "Bulldog", "Maggie");