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





INSERT INTO "Owners" VALUES ("1", "Alice", "Smith", "alice.smith@example.com", "555-1234", "555-5678");
INSERT INTO "Owners" VALUES ("2", "Bob", "Johnson", "bob.johnson@example.com", "555-2345", "555-6789");
INSERT INTO "Owners" VALUES ("3", "Carol", "Williams", "carol.williams@example.com", "555-3456", "555-7890");
INSERT INTO "Owners" VALUES ("4", "David", "Brown", "david.brown@example.com", "555-4567", "555-8901");
INSERT INTO "Owners" VALUES ("5", "Eve", "Davis", "eve.davis@example.com", "555-5678", "555-9012");
INSERT INTO "Dogs" VALUES ("101", "1");
INSERT INTO "Dogs" VALUES ("102", "1");
INSERT INTO "Dogs" VALUES ("103", "2");
INSERT INTO "Dogs" VALUES ("104", "2");
INSERT INTO "Dogs" VALUES ("105", "2");
INSERT INTO "Dogs" VALUES ("106", "3");
INSERT INTO "Dogs" VALUES ("107", "4");
INSERT INTO "Dogs" VALUES ("108", "4");
INSERT INTO "Dogs" VALUES ("109", "4");
INSERT INTO "Dogs" VALUES ("110", "4");
INSERT INTO "Dogs" VALUES ("111", "5");