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", "VACCINE", "45.0000");
INSERT INTO "Charges" VALUES ("2", "GROOMING", "30.0000");
INSERT INTO "Charges" VALUES ("3", "BOARDING", "25.0000");
INSERT INTO "Charges" VALUES ("4", "VACCINE", "50.0000");
INSERT INTO "Charges" VALUES ("5", "GROOMING", "28.5000");
INSERT INTO "Charges" VALUES ("6", "BOARDING", "27.0000");
INSERT INTO "Charges" VALUES ("7", "EMERGENCY", "150.0000");
INSERT INTO "Charges" VALUES ("8", "EMERGENCY", "200.0000");
INSERT INTO "Charges" VALUES ("9", "CHECKUP", "20.0000");
INSERT INTO "Charges" VALUES ("10", "CHECKUP", "22.5000");
INSERT INTO "Treatments" VALUES ("1", "VACCINE", "2024-01-10 09:00:00", "45.0000");
INSERT INTO "Treatments" VALUES ("2", "GROOMING", "2024-01-11 10:30:00", "30.0000");
INSERT INTO "Treatments" VALUES ("3", "BOARDING", "2024-01-12 15:00:00", "25.0000");
INSERT INTO "Treatments" VALUES ("4", "VACCINE", "2024-01-13 09:15:00", "50.0000");
INSERT INTO "Treatments" VALUES ("5", "GROOMING", "2024-01-14 11:00:00", "28.5000");
INSERT INTO "Treatments" VALUES ("6", "BOARDING", "2024-01-15 16:00:00", "27.0000");
INSERT INTO "Treatments" VALUES ("7", "EMERGENCY", "2024-01-16 20:00:00", "150.0000");
INSERT INTO "Treatments" VALUES ("8", "EMERGENCY", "2024-01-17 22:00:00", "200.0000");
INSERT INTO "Treatments" VALUES ("9", "CHECKUP", "2024-01-18 08:00:00", "20.0000");
INSERT INTO "Treatments" VALUES ("10", "CHECKUP", "2024-01-19 08:30:00", "22.5000");