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 ("2012");
INSERT INTO "matches" VALUES ("2013");
INSERT INTO "matches" VALUES ("2013");
INSERT INTO "matches" VALUES ("2013");
INSERT INTO "matches" VALUES ("2014");
INSERT INTO "matches" VALUES ("2015");
INSERT INTO "matches" VALUES ("2016");
INSERT INTO "matches" VALUES ("2016");
INSERT INTO "matches" VALUES ("2016");
INSERT INTO "matches" VALUES ("2016");
INSERT INTO "matches" VALUES ("2017");
INSERT INTO "matches" VALUES ("2018");
INSERT INTO "matches" VALUES ("2019");
INSERT INTO "matches" VALUES ("2020");
INSERT INTO "players" VALUES ("1", "1990-05-15");
INSERT INTO "players" VALUES ("2", "1985-11-23");
INSERT INTO "players" VALUES ("3", "1992-07-30");
INSERT INTO "players" VALUES ("4", "1988-01-10");
INSERT INTO "players" VALUES ("5", "1995-12-05");
INSERT INTO "rankings" VALUES ("2013-01-01");
INSERT INTO "rankings" VALUES ("2013-06-15");
INSERT INTO "rankings" VALUES ("2016-03-20");
INSERT INTO "rankings" VALUES ("2016-11-30");
INSERT INTO "rankings" VALUES ("2017-05-10");