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,
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", "United States");
INSERT INTO "people" VALUES ("2", "Canada");
INSERT INTO "people" VALUES ("3", "United Kingdom");
INSERT INTO "people" VALUES ("4", "Australia");
INSERT INTO "people" VALUES ("5", "Germany");
INSERT INTO "people" VALUES ("6", "Brazil");
INSERT INTO "people" VALUES ("7", "France");
INSERT INTO "people" VALUES ("8", "Japan");
INSERT INTO "people" VALUES ("9", "Russia");
INSERT INTO "people" VALUES ("10", "South Africa");
INSERT INTO "poker_player" VALUES ("101", "1", "3", "1", "1500000.00");
INSERT INTO "poker_player" VALUES ("102", "2", "1", "5", "500000.00");
INSERT INTO "poker_player" VALUES ("103", "3", "0", "20", "75000.00");
INSERT INTO "poker_player" VALUES ("104", "4", "5", "1", "2500000.00");
INSERT INTO "poker_player" VALUES ("105", "5", "2", "3", "1200000.00");
INSERT INTO "poker_player" VALUES ("106", "6", "0", "50", "10000.00");
INSERT INTO "poker_player" VALUES ("107", "7", "4", "2", "1800000.00");
INSERT INTO "poker_player" VALUES ("108", "8", "0", "100", "5000.00");
INSERT INTO "poker_player" VALUES ("109", "9", "3", "4", "900000.00");
INSERT INTO "poker_player" VALUES ("110", "10", "1", "10", "300000.00");
INSERT INTO "poker_player" VALUES ("111", "1", "0", "200", "2000.00");
INSERT INTO "poker_player" VALUES ("112", "2", "6", "1", "3500000.00");
INSERT INTO "poker_player" VALUES ("113", "3", "0", "150", "15000.00");
INSERT INTO "poker_player" VALUES ("114", "4", "2", "7", "400000.00");
INSERT INTO "poker_player" VALUES ("115", "5", "0", "500", "1000.00");