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 "Charges" (
"charge_id" INT,
"charge_type" VARCHAR(10),
"charge_amount" DECIMAL(19, 4),
PRIMARY KEY ("charge_id")
);

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

CREATE TABLE "Treatments" (
"treatment_id" INT,
"cost_of_treatment" DECIMAL(19, 4),
PRIMARY KEY ("treatment_id")
);





INSERT INTO "Charges" VALUES ("1", "Boarding", "45.0000");
INSERT INTO "Charges" VALUES ("2", "Grooming", "60.0000");
INSERT INTO "Charges" VALUES ("3", "Training", "75.5000");
INSERT INTO "Charges" VALUES ("4", "Medical", "120.0000");
INSERT INTO "Charges" VALUES ("5", "Daycare", "30.0000");
INSERT INTO "Charges" VALUES ("6", "Special Care", "120.0000");
INSERT INTO "Charges" VALUES ("7", "Transport", "25.0000");
INSERT INTO "Treatment_Types" VALUES ("T01", "Vaccination");
INSERT INTO "Treatment_Types" VALUES ("T02", "Deworming");
INSERT INTO "Treatment_Types" VALUES ("T03", "Dental Cleaning");
INSERT INTO "Treatment_Types" VALUES ("T04", "Surgery");
INSERT INTO "Treatment_Types" VALUES ("T05", "Physical Therapy");
INSERT INTO "Treatments" VALUES ("101", "150.0000");
INSERT INTO "Treatments" VALUES ("102", "200.0000");
INSERT INTO "Treatments" VALUES ("103", "120.0000");
INSERT INTO "Treatments" VALUES ("104", "300.0000");
INSERT INTO "Treatments" VALUES ("105", "75.0000");