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 UNIQUE,
PRIMARY KEY ("dog_id")
);

CREATE TABLE "Professionals" (
"professional_id" INT UNIQUE,
PRIMARY KEY ("professional_id")
);

CREATE TABLE "Treatment_Types" (
"treatment_type_code" VARCHAR(10) UNIQUE,
"treatment_type_description" VARCHAR(80),
PRIMARY KEY ("treatment_type_code")
);

CREATE TABLE "Treatments" (
"treatment_id" INT,
"treatment_type_code" VARCHAR(10),
"date_of_treatment" DATETIME,
"cost_of_treatment" DECIMAL(19, 4),
PRIMARY KEY ("treatment_id"),
FOREIGN KEY ("treatment_type_code") REFERENCES "Treatment_Types"("treatment_type_code")
);





INSERT INTO "Dogs" VALUES ("1");
INSERT INTO "Dogs" VALUES ("2");
INSERT INTO "Dogs" VALUES ("3");
INSERT INTO "Dogs" VALUES ("4");
INSERT INTO "Dogs" VALUES ("5");
INSERT INTO "Dogs" VALUES ("6");
INSERT INTO "Dogs" VALUES ("7");
INSERT INTO "Dogs" VALUES ("8");
INSERT INTO "Dogs" VALUES ("9");
INSERT INTO "Dogs" VALUES ("10");
INSERT INTO "Professionals" VALUES ("101");
INSERT INTO "Professionals" VALUES ("102");
INSERT INTO "Professionals" VALUES ("103");
INSERT INTO "Professionals" VALUES ("104");
INSERT INTO "Professionals" VALUES ("105");
INSERT INTO "Professionals" VALUES ("106");
INSERT INTO "Professionals" VALUES ("107");
INSERT INTO "Professionals" VALUES ("108");
INSERT INTO "Professionals" VALUES ("109");
INSERT INTO "Professionals" VALUES ("110");
INSERT INTO "Treatment_Types" VALUES ("VACC", "Vaccination");
INSERT INTO "Treatment_Types" VALUES ("GROOM", "Grooming Session");
INSERT INTO "Treatment_Types" VALUES ("CHECKUP", "Annual Check-up");
INSERT INTO "Treatment_Types" VALUES ("DENTAL", "Dental Cleaning");
INSERT INTO "Treatment_Types" VALUES ("SURG", "Surgery");
INSERT INTO "Treatment_Types" VALUES ("PHYSIO", "Physiotherapy");
INSERT INTO "Treatment_Types" VALUES ("TRAIN", "Behavioral Training");
INSERT INTO "Treatment_Types" VALUES ("BOARD", "Boarding Stay");
INSERT INTO "Treatment_Types" VALUES ("NAIL", "Nail Trim");
INSERT INTO "Treatment_Types" VALUES ("BATH", "Bath and Brush");
INSERT INTO "Treatments" VALUES ("1", "VACC", "2023-01-15 10:00:00", "50.00");
INSERT INTO "Treatments" VALUES ("2", "GROOM", "2023-01-20 14:30:00", "75.50");
INSERT INTO "Treatments" VALUES ("3", "CHECKUP", "2023-02-01 09:00:00", "120.00");
INSERT INTO "Treatments" VALUES ("4", "DENTAL", "2023-02-10 11:00:00", "300.00");
INSERT INTO "Treatments" VALUES ("5", "VACC", "2023-03-05 10:30:00", "50.00");
INSERT INTO "Treatments" VALUES ("6", "SURG", "2023-03-15 08:00:00", "1500.00");
INSERT INTO "Treatments" VALUES ("7", "PHYSIO", "2023-03-20 16:00:00", "80.00");
INSERT INTO "Treatments" VALUES ("8", "TRAIN", "2023-04-01 13:00:00", "250.00");
INSERT INTO "Treatments" VALUES ("9", "BOARD", "2023-04-05 09:00:00", "40.00");
INSERT INTO "Treatments" VALUES ("10", "NAIL", "2023-04-10 15:00:00", "20.00");
INSERT INTO "Treatments" VALUES ("11", "BATH", "2023-04-12 10:00:00", "35.00");
INSERT INTO "Treatments" VALUES ("12", "CHECKUP", "2023-04-15 11:00:00", "120.00");
INSERT INTO "Treatments" VALUES ("13", "GROOM", "2023-04-20 14:00:00", "75.50");
INSERT INTO "Treatments" VALUES ("14", "VACC", "2023-04-25 09:30:00", "50.00");
INSERT INTO "Treatments" VALUES ("15", "DENTAL", "2023-05-01 10:00:00", "300.00");
INSERT INTO "Treatments" VALUES ("16", "PHYSIO", "2023-05-05 15:00:00", "80.00");
INSERT INTO "Treatments" VALUES ("17", "TRAIN", "2023-05-10 11:00:00", "250.00");
INSERT INTO "Treatments" VALUES ("18", "BOARD", "2023-05-15 10:00:00", "40.00");
INSERT INTO "Treatments" VALUES ("19", "NAIL", "2023-05-20 16:00:00", "20.00");
INSERT INTO "Treatments" VALUES ("20", "BATH", "2023-05-22 13:00:00", "35.00");