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

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

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



INSERT INTO "Player" VALUES ("1", "Adam Smith", "180", "175");
INSERT INTO "Player" VALUES ("2", "Adam Johnson", "175", "172");
INSERT INTO "Player" VALUES ("3", "Adam Lee", "178", "169");
INSERT INTO "Player" VALUES ("4", "Adam Brown", "182", "180");
INSERT INTO "Player" VALUES ("5", "John Adamson", "185", "190");
INSERT INTO "Player" VALUES ("6", "Adam", "170", "171");
INSERT INTO "Player" VALUES ("7", "Adam O'Neil", "165", "165");
INSERT INTO "Player" VALUES ("8", "Adam White", "177", "171");
INSERT INTO "Player" VALUES ("9", "Michael Adam", "180", "180");
INSERT INTO "Player" VALUES ("10", "Adam Green", "172", "173");
INSERT INTO "Player_Attributes" VALUES ("1", "85");
INSERT INTO "Player_Attributes" VALUES ("2", "80");
INSERT INTO "Player_Attributes" VALUES ("3", "78");
INSERT INTO "Player_Attributes" VALUES ("4", "90");
INSERT INTO "Player_Attributes" VALUES ("5", "88");
INSERT INTO "Player_Attributes" VALUES ("6", "75");
INSERT INTO "Player_Attributes" VALUES ("7", "70");
INSERT INTO "Player_Attributes" VALUES ("8", "82");
INSERT INTO "Player_Attributes" VALUES ("9", "79");
INSERT INTO "Player_Attributes" VALUES ("10", "83");
INSERT INTO "Match" VALUES ("1", "1");
INSERT INTO "Match" VALUES ("2", "2");
INSERT INTO "Match" VALUES ("3", "4");
INSERT INTO "Match" VALUES ("4", "5");
INSERT INTO "Match" VALUES ("5", "8");
INSERT INTO "Match" VALUES ("6", "10");