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 "matches" (
"tourney_date" DATE,
"year" INT
);

CREATE TABLE "players" (
"player_id" INT,
"birth_date" DATE,
PRIMARY KEY ("player_id")
);

CREATE TABLE "rankings" (
"ranking_date" DATE
);





INSERT INTO "matches" VALUES ("2018-01-15", "2018");
INSERT INTO "matches" VALUES ("2018-02-20", "2018");
INSERT INTO "matches" VALUES ("2018-03-10", "2018");
INSERT INTO "matches" VALUES ("2019-01-05", "2019");
INSERT INTO "matches" VALUES ("2019-04-12", "2019");
INSERT INTO "matches" VALUES ("2019-06-30", "2019");
INSERT INTO "matches" VALUES ("2019-07-15", "2019");
INSERT INTO "matches" VALUES ("2020-01-10", "2020");
INSERT INTO "matches" VALUES ("2020-02-14", "2020");
INSERT INTO "matches" VALUES ("2020-03-20", "2020");
INSERT INTO "matches" VALUES ("2020-04-25", "2020");
INSERT INTO "matches" VALUES ("2020-05-30", "2020");
INSERT INTO "matches" VALUES ("2021-01-05", "2021");
INSERT INTO "matches" VALUES ("2021-02-10", "2021");
INSERT INTO "matches" VALUES ("2021-03-15", "2021");
INSERT INTO "matches" VALUES ("2021-04-20", "2021");
INSERT INTO "matches" VALUES ("2021-05-25", "2021");
INSERT INTO "matches" VALUES ("2021-06-30", "2021");
INSERT INTO "matches" VALUES ("2022-01-10", "2022");
INSERT INTO "matches" VALUES ("2022-02-15", "2022");
INSERT INTO "matches" VALUES ("2022-03-20", "2022");
INSERT INTO "matches" VALUES ("2022-04-25", "2022");
INSERT INTO "matches" VALUES ("2022-05-30", "2022");
INSERT INTO "matches" VALUES ("2022-06-30", "2022");
INSERT INTO "matches" VALUES ("2022-07-15", "2022");
INSERT INTO "matches" VALUES ("2023-01-10", "2023");
INSERT INTO "matches" VALUES ("2023-02-15", "2023");
INSERT INTO "matches" VALUES ("2023-03-20", "2023");
INSERT INTO "matches" VALUES ("2023-04-25", "2023");
INSERT INTO "matches" VALUES ("2023-05-30", "2023");
INSERT INTO "matches" VALUES ("2023-06-30", "2023");
INSERT INTO "matches" VALUES ("2023-07-15", "2023");
INSERT INTO "matches" VALUES ("2023-08-20", "2023");
INSERT INTO "players" VALUES ("1", "1990-05-15");
INSERT INTO "players" VALUES ("2", "1988-11-23");
INSERT INTO "players" VALUES ("3", "1995-07-30");
INSERT INTO "players" VALUES ("4", "1992-12-01");
INSERT INTO "players" VALUES ("5", "1985-03-10");
INSERT INTO "rankings" VALUES ("2018-01-01");
INSERT INTO "rankings" VALUES ("2019-01-01");
INSERT INTO "rankings" VALUES ("2020-01-01");
INSERT INTO "rankings" VALUES ("2021-01-01");
INSERT INTO "rankings" VALUES ("2022-01-01");
INSERT INTO "rankings" VALUES ("2023-01-01");