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 "Match" (
"id" INT,
"season" TEXT,
PRIMARY KEY ("id")
);

CREATE TABLE "Player" (
"id" INT,
"player_name" TEXT,
"birthday" TEXT,
PRIMARY KEY ("id")
);

CREATE TABLE "Player_Attributes" (
"id" INT,
"overall_rating" INT,
PRIMARY KEY ("id")
);

CREATE TABLE "Team" (
"id" INT,
"team_long_name" TEXT,
PRIMARY KEY ("id")
);



INSERT INTO "Match" VALUES ("1", "2019/2020");
INSERT INTO "Match" VALUES ("2", "2020/2021");
INSERT INTO "Match" VALUES ("3", "2021/2022");
INSERT INTO "Player" VALUES ("1", "John Smith", "1985-05-20");
INSERT INTO "Player" VALUES ("2", "Carlos Mendez", "1987-11-15");
INSERT INTO "Player" VALUES ("3", "Liam O'Connor", "1990-07-30");
INSERT INTO "Player" VALUES ("4", "Marco Rossi", "1983-01-10");
INSERT INTO "Player" VALUES ("5", "David Brown", "1979-12-05");
INSERT INTO "Player" VALUES ("6", "Alex Johnson", "1995-03-22");
INSERT INTO "Player" VALUES ("7", "Igor Petrov", "1988-09-17");
INSERT INTO "Player" VALUES ("8", "Samuel Lee", "1986-06-01");
INSERT INTO "Player" VALUES ("9", "Tomás Silva", "1984-02-28");
INSERT INTO "Player" VALUES ("10", "Oliver White", "2000-08-12");
INSERT INTO "Player_Attributes" VALUES ("1", "78");
INSERT INTO "Player_Attributes" VALUES ("2", "82");
INSERT INTO "Player_Attributes" VALUES ("3", "75");
INSERT INTO "Player_Attributes" VALUES ("4", "80");
INSERT INTO "Player_Attributes" VALUES ("5", "70");
INSERT INTO "Player_Attributes" VALUES ("6", "85");
INSERT INTO "Player_Attributes" VALUES ("7", "77");
INSERT INTO "Player_Attributes" VALUES ("8", "79");
INSERT INTO "Player_Attributes" VALUES ("9", "74");
INSERT INTO "Player_Attributes" VALUES ("10", "88");
INSERT INTO "Team" VALUES ("1", "FC Barcelona");
INSERT INTO "Team" VALUES ("2", "Manchester United");
INSERT INTO "Team" VALUES ("3", "Juventus");
INSERT INTO "Team" VALUES ("4", "Bayern Munich");
INSERT INTO "Team" VALUES ("5", "Paris Saint-Germain");