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" (
"match_num" INT,
"tourney_date" DATE,
"tourney_id" TEXT,
"tourney_level" TEXT,
"tourney_name" TEXT
);

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





INSERT INTO "matches" VALUES ("1", "2023-01-10", "T001", "G", "Australian Open");
INSERT INTO "matches" VALUES ("2", "2023-01-10", "T001", "G", "Australian Open");
INSERT INTO "matches" VALUES ("3", "2023-01-10", "T001", "G", "Australian Open");
INSERT INTO "matches" VALUES ("4", "2023-01-10", "T001", "G", "Australian Open");
INSERT INTO "matches" VALUES ("5", "2023-01-10", "T001", "G", "Australian Open");
INSERT INTO "matches" VALUES ("6", "2023-01-10", "T001", "G", "Australian Open");
INSERT INTO "matches" VALUES ("7", "2023-01-10", "T001", "G", "Australian Open");
INSERT INTO "matches" VALUES ("8", "2023-01-10", "T001", "G", "Australian Open");
INSERT INTO "matches" VALUES ("9", "2023-01-10", "T001", "G", "Australian Open");
INSERT INTO "matches" VALUES ("10", "2023-01-10", "T001", "G", "Australian Open");
INSERT INTO "matches" VALUES ("11", "2023-01-10", "T001", "G", "Australian Open");
INSERT INTO "matches" VALUES ("12", "2023-02-15", "T002", "P", "Dubai Championships");
INSERT INTO "matches" VALUES ("13", "2023-02-15", "T002", "P", "Dubai Championships");
INSERT INTO "matches" VALUES ("14", "2023-02-15", "T002", "P", "Dubai Championships");
INSERT INTO "matches" VALUES ("15", "2023-02-15", "T002", "P", "Dubai Championships");
INSERT INTO "matches" VALUES ("16", "2023-02-15", "T002", "P", "Dubai Championships");
INSERT INTO "matches" VALUES ("17", "2023-03-20", "T003", "I", "Indian Wells");
INSERT INTO "matches" VALUES ("18", "2023-03-20", "T003", "I", "Indian Wells");
INSERT INTO "matches" VALUES ("19", "2023-03-20", "T003", "I", "Indian Wells");
INSERT INTO "matches" VALUES ("20", "2023-03-20", "T003", "I", "Indian Wells");
INSERT INTO "matches" VALUES ("21", "2023-03-20", "T003", "I", "Indian Wells");
INSERT INTO "matches" VALUES ("22", "2023-03-20", "T003", "I", "Indian Wells");
INSERT INTO "matches" VALUES ("23", "2023-03-20", "T003", "I", "Indian Wells");
INSERT INTO "matches" VALUES ("24", "2023-03-20", "T003", "I", "Indian Wells");
INSERT INTO "matches" VALUES ("25", "2023-03-20", "T003", "I", "Indian Wells");
INSERT INTO "matches" VALUES ("26", "2023-03-20", "T003", "I", "Indian Wells");
INSERT INTO "matches" VALUES ("27", "2023-03-20", "T003", "I", "Indian Wells");
INSERT INTO "matches" VALUES ("28", "2023-04-10", "T004", "M", "Miami Open");
INSERT INTO "matches" VALUES ("29", "2023-04-10", "T004", "M", "Miami Open");
INSERT INTO "matches" VALUES ("30", "2023-04-10", "T004", "M", "Miami Open");
INSERT INTO "rankings" VALUES ("2023-01-01");
INSERT INTO "rankings" VALUES ("2023-02-01");
INSERT INTO "rankings" VALUES ("2023-03-01");
INSERT INTO "rankings" VALUES ("2023-04-01");