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

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





INSERT INTO "people" VALUES ("1", "Daniel Negreanu");
INSERT INTO "people" VALUES ("2", "Phil Ivey");
INSERT INTO "people" VALUES ("3", "Erik Seidel");
INSERT INTO "people" VALUES ("4", "Justin Bonomo");
INSERT INTO "people" VALUES ("5", "Stephen Chidwick");
INSERT INTO "people" VALUES ("6", "Fedor Holz");
INSERT INTO "people" VALUES ("7", "Bryn Kenney");
INSERT INTO "people" VALUES ("8", "Jason Koon");
INSERT INTO "people" VALUES ("9", "Sam Trickett");
INSERT INTO "people" VALUES ("10", "Vanessa Selbst");
INSERT INTO "poker_player" VALUES ("101", "1", "100.0", "1.0", "42000000.0");
INSERT INTO "poker_player" VALUES ("102", "2", "80.0", "2.0", "30000000.0");
INSERT INTO "poker_player" VALUES ("103", "3", "75.0", "3.0", "28000000.0");
INSERT INTO "poker_player" VALUES ("104", "4", "60.0", "4.0", "55000000.0");
INSERT INTO "poker_player" VALUES ("105", "5", "55.0", "5.0", "40000000.0");
INSERT INTO "poker_player" VALUES ("106", "6", "50.0", "6.0", "35000000.0");
INSERT INTO "poker_player" VALUES ("107", "7", "45.0", "7.0", "57000000.0");
INSERT INTO "poker_player" VALUES ("108", "8", "40.0", "8.0", "32000000.0");
INSERT INTO "poker_player" VALUES ("109", "9", "30.0", "9.0", "25000000.0");
INSERT INTO "poker_player" VALUES ("110", "10", "20.0", "10.0", "12000000.0");
INSERT INTO "poker_player" VALUES ("111", "1", "10.0", "11.0", "500000.0");
INSERT INTO "poker_player" VALUES ("112", "2", "5.0", "12.0", "100000.0");
INSERT INTO "poker_player" VALUES ("113", "3", "2.0", "13.0", "50000.0");