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 "Treatments" (
"treatment_id" INT,
"treatment_type_code" VARCHAR(10),
"date_of_treatment" DATETIME,
"cost_of_treatment" DECIMAL(19, 4),
PRIMARY KEY ("treatment_id")
);





INSERT INTO "Charges" VALUES ("1", "Grooming", "45.0000");
INSERT INTO "Charges" VALUES ("2", "Boarding", "75.5000");
INSERT INTO "Charges" VALUES ("3", "Training", "60.0000");
INSERT INTO "Charges" VALUES ("4", "Vaccination", "30.0000");
INSERT INTO "Charges" VALUES ("5", "Emergency", "150.0000");
INSERT INTO "Charges" VALUES ("6", "Consultation", "50.0000");
INSERT INTO "Charges" VALUES ("7", "Dental", "120.0000");
INSERT INTO "Charges" VALUES ("8", "Surgery", "300.0000");
INSERT INTO "Charges" VALUES ("9", "Medication", "25.0000");
INSERT INTO "Charges" VALUES ("10", "Boarding", "80.0000");
INSERT INTO "Treatments" VALUES ("1", "Grooming", "2024-01-15 10:00:00", "45.0000");
INSERT INTO "Treatments" VALUES ("2", "Vaccination", "2024-02-20 09:30:00", "30.0000");
INSERT INTO "Treatments" VALUES ("3", "Surgery", "2024-03-05 14:00:00", "300.0000");
INSERT INTO "Treatments" VALUES ("4", "Dental", "2024-04-10 11:00:00", "120.0000");
INSERT INTO "Treatments" VALUES ("5", "Training", "2024-05-12 15:00:00", "60.0000");
INSERT INTO "Treatments" VALUES ("6", "Emergency", "2024-06-01 22:00:00", "150.0000");
INSERT INTO "Treatments" VALUES ("7", "Consultation", "2024-06-15 13:00:00", "50.0000");
INSERT INTO "Treatments" VALUES ("8", "Boarding", "2024-07-01 08:00:00", "75.5000");
INSERT INTO "Treatments" VALUES ("9", "Medication", "2024-07-10 10:30:00", "25.0000");
INSERT INTO "Treatments" VALUES ("10", "Boarding", "2024-07-15 09:00:00", "80.0000");