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





INSERT INTO "matches" VALUES ("1", "2023-01-01", "AUSOPEN2023", "Australian Open");
INSERT INTO "matches" VALUES ("2", "2023-01-01", "AUSOPEN2023", "Australian Open");
INSERT INTO "matches" VALUES ("3", "2023-01-02", "AUSOPEN2023", "Australian Open");
INSERT INTO "matches" VALUES ("4", "2023-01-02", "AUSOPEN2023", "Australian Open");
INSERT INTO "matches" VALUES ("5", "2023-01-03", "AUSOPEN2023", "Australian Open");
INSERT INTO "matches" VALUES ("6", "2023-02-10", "DUBAI2023", "Dubai Tennis Championships");
INSERT INTO "matches" VALUES ("7", "2023-02-10", "DUBAI2023", "Dubai Tennis Championships");
INSERT INTO "matches" VALUES ("8", "2023-03-15", "MIAMI2023", "Miami Open");
INSERT INTO "matches" VALUES ("9", "2023-03-16", "MIAMI2023", "Miami Open");
INSERT INTO "matches" VALUES ("10", "2023-04-20", "MADRID2023", "Mutua Madrid Open");
INSERT INTO "matches" VALUES ("11", "2023-04-21", "MADRID2023", "Mutua Madrid Open");
INSERT INTO "matches" VALUES ("12", "2023-05-28", "FRENCHOPEN2023", "French Open");
INSERT INTO "matches" VALUES ("13", "2023-05-29", "FRENCHOPEN2023", "French Open");
INSERT INTO "matches" VALUES ("14", "2023-06-01", "FRENCHOPEN2023", "French Open");
INSERT INTO "matches" VALUES ("15", "2023-07-03", "WIMBLEDON2023", "Wimbledon");
INSERT INTO "matches" VALUES ("16", "2023-07-04", "WIMBLEDON2023", "Wimbledon");
INSERT INTO "matches" VALUES ("17", "2023-08-28", "USOPEN2023", "US Open");
INSERT INTO "matches" VALUES ("18", "2023-08-29", "USOPEN2023", "US Open");
INSERT INTO "matches" VALUES ("19", "2023-09-01", "USOPEN2023", "US Open");
INSERT INTO "matches" VALUES ("20", "2023-10-05", "BEIJING2023", "China Open");