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,
"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", "Canada", "Phil Ivey");
INSERT INTO "people" VALUES ("3", "USA", "Erik Seidel");
INSERT INTO "people" VALUES ("4", "Germany", "Fedor Holz");
INSERT INTO "people" VALUES ("5", "USA", "Vanessa Selbst");
INSERT INTO "people" VALUES ("6", "UK", "Stephen Chidwick");
INSERT INTO "people" VALUES ("7", "USA", "Doyle Brunson");
INSERT INTO "people" VALUES ("8", "USA", "Jennifer Harman");
INSERT INTO "people" VALUES ("9", "Sweden", "Viktor Blom");
INSERT INTO "people" VALUES ("10", "USA", "Antonio Esfandiari");
INSERT INTO "poker_player" VALUES ("101", "1", "42000000.0");
INSERT INTO "poker_player" VALUES ("102", "2", "30000000.0");
INSERT INTO "poker_player" VALUES ("103", "3", "35000000.0");
INSERT INTO "poker_player" VALUES ("104", "4", "32000000.0");
INSERT INTO "poker_player" VALUES ("105", "5", "12000000.0");
INSERT INTO "poker_player" VALUES ("106", "6", "25000000.0");
INSERT INTO "poker_player" VALUES ("107", "7", "6000000.0");
INSERT INTO "poker_player" VALUES ("108", "8", "2700000.0");
INSERT INTO "poker_player" VALUES ("109", "9", "10000000.0");
INSERT INTO "poker_player" VALUES ("110", "10", "27000000.0");