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

CREATE TABLE "Professionals" (
"professional_id" INT,
"email_address" VARCHAR(50),
"home_phone" VARCHAR(20),
"cell_number" VARCHAR(20),
PRIMARY KEY ("professional_id")
);





INSERT INTO "Owners" VALUES ("1", "owner1@example.com", "555-1234", "555-5678");
INSERT INTO "Owners" VALUES ("2", "owner2@example.com", "NULL", "555-8765");
INSERT INTO "Owners" VALUES ("3", "NULL", "555-4321", "NULL");
INSERT INTO "Owners" VALUES ("4", "owner4@example.com", "555 111-2222", "555-333-4444");
INSERT INTO "Owners" VALUES ("5", "owner5@example.com", "555.555.5555", "NULL");
INSERT INTO "Professionals" VALUES ("1", "pro1@example.com", "555-0001", "555-1001");
INSERT INTO "Professionals" VALUES ("2", "pro2@example.com", "NULL", "+1-555-2002");
INSERT INTO "Professionals" VALUES ("3", "NULL", "555-3003", "NULL");
INSERT INTO "Professionals" VALUES ("4", "pro4@example.com", "555 4004", "555 4004");
INSERT INTO "Professionals" VALUES ("5", "pro5@example.com", "NULL", "NULL");
INSERT INTO "Professionals" VALUES ("6", "pro6@example.com", "555-6006", "555-6006");
INSERT INTO "Professionals" VALUES ("7", "NULL", "NULL", "555-7007");
INSERT INTO "Professionals" VALUES ("8", "pro8@example.com", "555-8008", "NULL");