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,
"Money_Rank" FLOAT,
"Earnings" FLOAT,
PRIMARY KEY ("Poker_Player_ID"),
FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID")
);





INSERT INTO "people" VALUES ("1", "USA");
INSERT INTO "people" VALUES ("2", "Canada");
INSERT INTO "people" VALUES ("3", "UK");
INSERT INTO "people" VALUES ("4", "Australia");
INSERT INTO "people" VALUES ("5", "Germany");
INSERT INTO "people" VALUES ("6", "Brazil");
INSERT INTO "people" VALUES ("7", "Japan");
INSERT INTO "people" VALUES ("8", "France");
INSERT INTO "people" VALUES ("9", "Sweden");
INSERT INTO "people" VALUES ("10", "Russia");
INSERT INTO "poker_player" VALUES ("101", "1", "5", "1", "10", "1500000");
INSERT INTO "poker_player" VALUES ("102", "2", "3", "2", "20", "1200000");
INSERT INTO "poker_player" VALUES ("103", "3", "7", "1", "15", "1500000");
INSERT INTO "poker_player" VALUES ("104", "4", "2", "3", "5", "2000000");
INSERT INTO "poker_player" VALUES ("105", "5", "1", "1", "1", "2500000");
INSERT INTO "poker_player" VALUES ("106", "6", "0", "10", "50", "500000");
INSERT INTO "poker_player" VALUES ("107", "7", "4", "4", "25", "1000000");
INSERT INTO "poker_player" VALUES ("108", "8", "6", "2", "12", "1800000");
INSERT INTO "poker_player" VALUES ("109", "9", "3", "5", "30", "900000");
INSERT INTO "poker_player" VALUES ("110", "10", "8", "1", "8", "2500000");