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 "people" (
"People_ID" INT UNIQUE,
"Nationality" TEXT,
"Name" TEXT,
PRIMARY KEY ("People_ID")
);

CREATE TABLE "poker_player" (
"Poker_Player_ID" INT,
"People_ID" INT,
"Final_Table_Made" FLOAT,
"Best_Finish" FLOAT,
"Earnings" FLOAT,
PRIMARY KEY ("Poker_Player_ID"),
FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID")
);





INSERT INTO "people" VALUES ("1", "USA", "Daniel Negreanu");
INSERT INTO "people" VALUES ("2", "USA", "Phil Ivey");
INSERT INTO "people" VALUES ("3", "Canada", "Erik Seidel");
INSERT INTO "people" VALUES ("4", "USA", "Justin Bonomo");
INSERT INTO "people" VALUES ("5", "Germany", "Fedor Holz");
INSERT INTO "people" VALUES ("6", "USA", "Bryn Kenney");
INSERT INTO "people" VALUES ("7", "USA", "Stephen Chidwick");
INSERT INTO "people" VALUES ("8", "USA", "Jason Koon");
INSERT INTO "people" VALUES ("9", "USA", "David Peters");
INSERT INTO "people" VALUES ("10", "USA", "Adrian Mateos");
INSERT INTO "people" VALUES ("11", "USA", "Maria Ho");
INSERT INTO "people" VALUES ("12", "USA", "Vanessa Selbst");
INSERT INTO "people" VALUES ("13", "USA", "Liv Boeree");
INSERT INTO "people" VALUES ("14", "USA", "Doyle Brunson");
INSERT INTO "people" VALUES ("15", "USA", "Phil Hellmuth");
INSERT INTO "poker_player" VALUES ("1", "1", "100.0", "1.0", "42000000.0");
INSERT INTO "poker_player" VALUES ("2", "2", "80.0", "1.0", "30000000.0");
INSERT INTO "poker_player" VALUES ("3", "3", "90.0", "1.0", "35000000.0");
INSERT INTO "poker_player" VALUES ("4", "4", "70.0", "1.0", "50000000.0");
INSERT INTO "poker_player" VALUES ("5", "5", "60.0", "1.0", "32000000.0");
INSERT INTO "poker_player" VALUES ("6", "6", "65.0", "1.0", "56000000.0");
INSERT INTO "poker_player" VALUES ("7", "7", "55.0", "2.0", "40000000.0");
INSERT INTO "poker_player" VALUES ("8", "8", "50.0", "3.0", "38000000.0");
INSERT INTO "poker_player" VALUES ("9", "9", "45.0", "2.0", "36000000.0");
INSERT INTO "poker_player" VALUES ("10", "10", "40.0", "1.0", "28000000.0");
INSERT INTO "poker_player" VALUES ("11", "11", "15.0", "2.0", "4000000.0");
INSERT INTO "poker_player" VALUES ("12", "12", "20.0", "1.0", "12000000.0");
INSERT INTO "poker_player" VALUES ("13", "13", "10.0", "3.0", "5000000.0");
INSERT INTO "poker_player" VALUES ("14", "14", "120.0", "1.0", "10000000.0");
INSERT INTO "poker_player" VALUES ("15", "15", "110.0", "1.0", "25000000.0");