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

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

CREATE TABLE "Owners" (
"owner_id" INT UNIQUE,
PRIMARY KEY ("owner_id")
);

CREATE TABLE "Treatments" (
"treatment_id" INT,
"date_of_treatment" DATETIME,
PRIMARY KEY ("treatment_id")
);





INSERT INTO "Charges" VALUES ("1");
INSERT INTO "Charges" VALUES ("2");
INSERT INTO "Charges" VALUES ("3");
INSERT INTO "Charges" VALUES ("4");
INSERT INTO "Charges" VALUES ("5");
INSERT INTO "Charges" VALUES ("6");
INSERT INTO "Charges" VALUES ("7");
INSERT INTO "Charges" VALUES ("8");
INSERT INTO "Charges" VALUES ("9");
INSERT INTO "Charges" VALUES ("10");
INSERT INTO "Dogs" VALUES ("1", "2023-01-01 10:00:00", "2023-01-05 16:00:00");
INSERT INTO "Dogs" VALUES ("2", "2023-01-02 11:00:00", "2023-01-07 15:00:00");
INSERT INTO "Dogs" VALUES ("3", "2023-01-03 09:00:00", "2023-01-03 18:00:00");
INSERT INTO "Dogs" VALUES ("4", "2023-01-04 14:00:00", "2023-01-10 12:00:00");
INSERT INTO "Dogs" VALUES ("5", "2023-01-05 13:00:00", "2023-01-06 11:00:00");
INSERT INTO "Dogs" VALUES ("6", "2023-01-06 10:00:00", "2023-01-08 17:00:00");
INSERT INTO "Dogs" VALUES ("7", "2023-01-07 12:00:00", "2023-01-09 14:00:00");
INSERT INTO "Dogs" VALUES ("8", "2023-01-08 08:00:00", "2023-01-12 10:00:00");
INSERT INTO "Dogs" VALUES ("9", "2023-01-09 16:00:00", "2023-01-11 09:00:00");
INSERT INTO "Dogs" VALUES ("10", "2023-01-10 11:00:00", "2023-01-13 13:00:00");
INSERT INTO "Owners" VALUES ("1");
INSERT INTO "Owners" VALUES ("2");
INSERT INTO "Owners" VALUES ("3");
INSERT INTO "Owners" VALUES ("4");
INSERT INTO "Owners" VALUES ("5");
INSERT INTO "Owners" VALUES ("6");
INSERT INTO "Owners" VALUES ("7");
INSERT INTO "Owners" VALUES ("8");
INSERT INTO "Owners" VALUES ("9");
INSERT INTO "Owners" VALUES ("10");
INSERT INTO "Treatments" VALUES ("1", "2023-01-02 14:30:00");
INSERT INTO "Treatments" VALUES ("2", "2023-01-04 10:00:00");
INSERT INTO "Treatments" VALUES ("3", "2023-01-05 09:00:00");
INSERT INTO "Treatments" VALUES ("4", "2023-01-07 16:00:00");
INSERT INTO "Treatments" VALUES ("5", "2023-01-08 11:00:00");
INSERT INTO "Treatments" VALUES ("6", "2023-01-09 13:00:00");
INSERT INTO "Treatments" VALUES ("7", "2023-01-10 15:00:00");
INSERT INTO "Treatments" VALUES ("8", "2023-01-11 08:00:00");
INSERT INTO "Treatments" VALUES ("9", "2023-01-12 12:00:00");
INSERT INTO "Treatments" VALUES ("10", "2023-01-13 10:00:00");