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





INSERT INTO "Owners" VALUES ("1", "Alice", "Smith", "alice.smith@example.com", "555-1234");
INSERT INTO "Owners" VALUES ("2", "Bob", "Johnson", "bob.johnson@example.com", "555-2345");
INSERT INTO "Owners" VALUES ("3", "Carol", "Williams", "carol.williams@example.com", "555-3456");
INSERT INTO "Owners" VALUES ("4", "David", "Brown", "david.brown@example.com", "555-4567");
INSERT INTO "Owners" VALUES ("5", "Eve", "Davis", "eve.davis@example.com", "555-5678");
INSERT INTO "Dogs" VALUES ("101", "1", "Rex");
INSERT INTO "Dogs" VALUES ("102", "1", "Buddy");
INSERT INTO "Dogs" VALUES ("103", "2", "Max");
INSERT INTO "Dogs" VALUES ("104", "2", "Bella");
INSERT INTO "Dogs" VALUES ("105", "2", "Charlie");
INSERT INTO "Dogs" VALUES ("106", "3", "Lucy");
INSERT INTO "Dogs" VALUES ("107", "4", "Daisy");
INSERT INTO "Dogs" VALUES ("108", "4", "Molly");
INSERT INTO "Dogs" VALUES ("109", "4", "Bailey");
INSERT INTO "Dogs" VALUES ("110", "4", "Lola");
INSERT INTO "Dogs" VALUES ("111", "5", "Sadie");