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", "John Doe");
INSERT INTO "people" VALUES ("2", "Canada", "Jane Smith");
INSERT INTO "people" VALUES ("3", "UK", "Peter Jones");
INSERT INTO "people" VALUES ("4", "Germany", "Anna Muller");
INSERT INTO "people" VALUES ("5", "Australia", "Chris Brown");
INSERT INTO "people" VALUES ("6", "USA", "Emily White");
INSERT INTO "people" VALUES ("7", "Canada", "David Green");
INSERT INTO "people" VALUES ("8", "UK", "Sarah Black");
INSERT INTO "people" VALUES ("9", "France", "Pierre Dubois");
INSERT INTO "people" VALUES ("10", "Spain", "Maria Garcia");
INSERT INTO "poker_player" VALUES ("101", "1", "5.0", "1.0", "150000.0");
INSERT INTO "poker_player" VALUES ("102", "2", "12.0", "3.0", "250000.0");
INSERT INTO "poker_player" VALUES ("103", "3", "2.0", "5.0", "75000.0");
INSERT INTO "poker_player" VALUES ("104", "4", "8.0", "2.0", "300000.0");
INSERT INTO "poker_player" VALUES ("105", "5", "0.0", "0.0", "10000.0");
INSERT INTO "poker_player" VALUES ("106", "6", "15.0", "1.0", "500000.0");
INSERT INTO "poker_player" VALUES ("107", "7", "3.0", "4.0", "90000.0");
INSERT INTO "poker_player" VALUES ("108", "8", "7.0", "2.0", "180000.0");
INSERT INTO "poker_player" VALUES ("109", "9", "1.0", "6.0", "40000.0");
INSERT INTO "poker_player" VALUES ("110", "10", "10.0", "1.0", "400000.0");
INSERT INTO "poker_player" VALUES ("111", "1", "5.0", "1.0", "155000.0");
INSERT INTO "poker_player" VALUES ("112", "3", "2.0", "5.0", "78000.0");
INSERT INTO "poker_player" VALUES ("113", "5", "0.0", "0.0", "12000.0");