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" (
"winner_hand" TEXT
);

CREATE TABLE "players" (
"player_id" INT,
"first_name" TEXT,
"last_name" TEXT,
"hand" TEXT,
"birth_date" DATE,
PRIMARY KEY ("player_id")
);

CREATE TABLE "rankings" (
"ranking_points" INT
);





INSERT INTO "matches" VALUES ("L");
INSERT INTO "matches" VALUES ("R");
INSERT INTO "matches" VALUES ("L");
INSERT INTO "matches" VALUES ("R");
INSERT INTO "matches" VALUES ("L");
INSERT INTO "players" VALUES ("1", "Serena", "Williams", "R", "1981-09-26");
INSERT INTO "players" VALUES ("2", "Martina", "Navratilova", "L", "1956-10-18");
INSERT INTO "players" VALUES ("3", "Rafael", "Nadal", "L", "1986-06-03");
INSERT INTO "players" VALUES ("4", "Venus", "Williams", "R", "1980-06-17");
INSERT INTO "players" VALUES ("5", "Monica", "Seles", "L", "1973-12-02");
INSERT INTO "players" VALUES ("6", "John", "McEnroe", "L", "1959-02-16");
INSERT INTO "players" VALUES ("7", "Simona", "Halep", "R", "1991-09-27");
INSERT INTO "players" VALUES ("8", "Angelique", "Kerber", "L", "1988-01-18");
INSERT INTO "players" VALUES ("9", "Bjorn", "Borg", "L", "1956-06-06");
INSERT INTO "players" VALUES ("10", "Steffi", "Graf", "R", "1969-06-14");
INSERT INTO "rankings" VALUES ("10000");
INSERT INTO "rankings" VALUES ("8500");
INSERT INTO "rankings" VALUES ("12000");
INSERT INTO "rankings" VALUES ("9000");
INSERT INTO "rankings" VALUES ("11000");
INSERT INTO "rankings" VALUES ("9500");
INSERT INTO "rankings" VALUES ("8000");
INSERT INTO "rankings" VALUES ("8700");
INSERT INTO "rankings" VALUES ("11500");
INSERT INTO "rankings" VALUES ("10500");