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_amount" DECIMAL(19, 4),
PRIMARY KEY ("charge_id")
);

CREATE TABLE "Dogs" (
"dog_id" INT,
"date_arrived" DATETIME,
PRIMARY KEY ("dog_id")
);

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





INSERT INTO "Charges" VALUES ("1", "100.00");
INSERT INTO "Charges" VALUES ("2", "50.00");
INSERT INTO "Charges" VALUES ("3", "25.00");
INSERT INTO "Charges" VALUES ("4", "75.00");
INSERT INTO "Charges" VALUES ("5", "120.00");
INSERT INTO "Charges" VALUES ("6", "30.00");
INSERT INTO "Dogs" VALUES ("1", "2023-01-01 10:00:00");
INSERT INTO "Dogs" VALUES ("2", "2023-01-05 11:30:00");
INSERT INTO "Dogs" VALUES ("3", "2023-01-10 09:00:00");
INSERT INTO "Dogs" VALUES ("4", "2023-01-15 14:00:00");
INSERT INTO "Dogs" VALUES ("5", "2023-01-20 16:00:00");
INSERT INTO "Dogs" VALUES ("6", "2023-01-25 08:00:00");
INSERT INTO "Treatments" VALUES ("1", "2023-01-02 10:30:00", "50.00");
INSERT INTO "Treatments" VALUES ("2", "2023-01-06 12:00:00", "75.00");
INSERT INTO "Treatments" VALUES ("3", "2023-01-11 09:30:00", "100.00");
INSERT INTO "Treatments" VALUES ("4", "2023-01-16 14:30:00", "60.00");
INSERT INTO "Treatments" VALUES ("5", "2023-01-21 16:30:00", "90.00");
INSERT INTO "Treatments" VALUES ("6", "2023-01-26 08:30:00", "120.00");
INSERT INTO "Treatments" VALUES ("7", "2023-01-26 08:31:00", "150.00");
INSERT INTO "Treatments" VALUES ("8", "2023-01-26 08:32:00", "110.00");
INSERT INTO "Treatments" VALUES ("9", "2023-01-26 08:33:00", "130.00");
INSERT INTO "Treatments" VALUES ("10", "2023-01-26 08:34:00", "140.00");