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" (
"loser_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 "players" VALUES ("1", "Serena", "Williams", "L", "1981-09-26");
INSERT INTO "players" VALUES ("2", "Venus", "Williams", "L", "1980-06-17");
INSERT INTO "players" VALUES ("3", "Martina", "Navratilova", "L", "1956-10-18");
INSERT INTO "players" VALUES ("4", "Monica", "Seles", "L", "1973-12-02");
INSERT INTO "players" VALUES ("5", "Justine", "Henin", "R", "1982-06-01");
INSERT INTO "players" VALUES ("6", "Rafael", "Nadal", "L", "1986-06-03");
INSERT INTO "players" VALUES ("7", "John", "Doe", "NULL", "1990-01-01");
INSERT INTO "players" VALUES ("8", "Jane", "Smith", "U", "1985-05-05");
INSERT INTO "players" VALUES ("9", "Alex", "Johnson", "L", "2000-02-29");
INSERT INTO "players" VALUES ("10", "Chris", "Lee", "L", "1970-07-15");
INSERT INTO "rankings" VALUES ("10000");
INSERT INTO "rankings" VALUES ("8500");
INSERT INTO "rankings" VALUES ("9200");
INSERT INTO "rankings" VALUES ("7800");
INSERT INTO "rankings" VALUES ("11000");
INSERT INTO "rankings" VALUES ("9500");
INSERT INTO "rankings" VALUES ("500");
INSERT INTO "rankings" VALUES ("3000");
INSERT INTO "rankings" VALUES ("4000");
INSERT INTO "rankings" VALUES ("6000");
INSERT INTO "matches" VALUES ("L");
INSERT INTO "matches" VALUES ("R");
INSERT INTO "matches" VALUES ("L");
INSERT INTO "matches" VALUES ("U");
INSERT INTO "matches" VALUES ("L");
INSERT INTO "matches" VALUES ("R");
INSERT INTO "matches" VALUES ("L");
INSERT INTO "matches" VALUES ("L");
INSERT INTO "matches" VALUES ("R");
INSERT INTO "matches" VALUES ("L");