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" (
"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");
INSERT INTO "matches" VALUES ("2018");
INSERT INTO "matches" VALUES ("2018");
INSERT INTO "matches" VALUES ("2019");
INSERT INTO "matches" VALUES ("2019");
INSERT INTO "matches" VALUES ("2020");
INSERT INTO "matches" VALUES ("2020");
INSERT INTO "matches" VALUES ("2020");
INSERT INTO "matches" VALUES ("2020");
INSERT INTO "matches" VALUES ("2021");
INSERT INTO "matches" VALUES ("2021");
INSERT INTO "matches" VALUES ("2022");
INSERT INTO "players" VALUES ("1", "1995-04-12");
INSERT INTO "players" VALUES ("2", "1990-11-23");
INSERT INTO "players" VALUES ("3", "1988-07-05");
INSERT INTO "players" VALUES ("4", "2000-01-30");
INSERT INTO "players" VALUES ("5", "1997-09-15");
INSERT INTO "rankings" VALUES ("2018-01-01");
INSERT INTO "rankings" VALUES ("2018-06-01");
INSERT INTO "rankings" VALUES ("2019-01-01");
INSERT INTO "rankings" VALUES ("2019-06-01");
INSERT INTO "rankings" VALUES ("2020-01-01");
INSERT INTO "rankings" VALUES ("2020-06-01");
INSERT INTO "rankings" VALUES ("2021-01-01");
INSERT INTO "rankings" VALUES ("2022-01-01");