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 "Professionals" (
"professional_id" INT UNIQUE,
"role_code" VARCHAR(10),
"first_name" VARCHAR(50),
"last_name" VARCHAR(50),
"email_address" VARCHAR(50),
"home_phone" VARCHAR(20),
PRIMARY KEY ("professional_id")
);

CREATE TABLE "Treatments" (
"treatment_id" INT,
"professional_id" INT,
PRIMARY KEY ("treatment_id"),
FOREIGN KEY ("professional_id") REFERENCES "Professionals"("professional_id")
);





INSERT INTO "Professionals" VALUES ("1", "VET", "Alice", "Smith", "alice.smith@example.com", "555-1234");
INSERT INTO "Professionals" VALUES ("2", "TRAINER", "Bob", "Johnson", "bob.j@example.com", "555-5678");
INSERT INTO "Professionals" VALUES ("3", "GROOMER", "Charlie", "Brown", "charlie.b@example.com", "555-9012");
INSERT INTO "Professionals" VALUES ("4", "VET", "Diana", "Prince", "diana.p@example.com", "555-3456");
INSERT INTO "Professionals" VALUES ("5", "TRAINER", "Eve", "Davis", "eve.d@example.com", "555-7890");
INSERT INTO "Professionals" VALUES ("6", "GROOMER", "Frank", "White", "frank.w@example.com", "555-2345");
INSERT INTO "Professionals" VALUES ("7", "VET", "Grace", "Taylor", "grace.t@example.com", "555-6789");
INSERT INTO "Professionals" VALUES ("8", "TRAINER", "Henry", "Moore", "henry.m@example.com", "555-0123");
INSERT INTO "Professionals" VALUES ("9", "GROOMER", "Ivy", "Clark", "ivy.c@example.com", "555-4567");
INSERT INTO "Professionals" VALUES ("10", "VET", "Jack", "Hall", "jack.h@example.com", "555-8901");
INSERT INTO "Treatments" VALUES ("101", "1");
INSERT INTO "Treatments" VALUES ("102", "2");
INSERT INTO "Treatments" VALUES ("103", "1");
INSERT INTO "Treatments" VALUES ("104", "3");
INSERT INTO "Treatments" VALUES ("105", "2");
INSERT INTO "Treatments" VALUES ("106", "4");
INSERT INTO "Treatments" VALUES ("107", "1");
INSERT INTO "Treatments" VALUES ("108", "5");
INSERT INTO "Treatments" VALUES ("109", "4");
INSERT INTO "Treatments" VALUES ("110", "6");
INSERT INTO "Treatments" VALUES ("111", "2");
INSERT INTO "Treatments" VALUES ("112", "7");
INSERT INTO "Treatments" VALUES ("113", "8");
INSERT INTO "Treatments" VALUES ("114", "9");
INSERT INTO "Treatments" VALUES ("115", "10");
INSERT INTO "Treatments" VALUES ("116", "1");
INSERT INTO "Treatments" VALUES ("117", "4");
INSERT INTO "Treatments" VALUES ("118", "5");
INSERT INTO "Treatments" VALUES ("119", "7");
INSERT INTO "Treatments" VALUES ("120", "8");
INSERT INTO "Treatments" VALUES ("121", "10");
INSERT INTO "Treatments" VALUES ("122", "3");
INSERT INTO "Treatments" VALUES ("123", "6");
INSERT INTO "Treatments" VALUES ("124", "9");
INSERT INTO "Treatments" VALUES ("125", "5");
INSERT INTO "Treatments" VALUES ("126", "7");
INSERT INTO "Treatments" VALUES ("127", "8");
INSERT INTO "Treatments" VALUES ("128", "9");
INSERT INTO "Treatments" VALUES ("129", "10");
INSERT INTO "Treatments" VALUES ("130", "3");