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





INSERT INTO "people" VALUES ("1", "USA", "Alice Johnson");
INSERT INTO "people" VALUES ("2", "Canada", "Bob Smith");
INSERT INTO "people" VALUES ("3", "UK", "Charlie Brown");
INSERT INTO "people" VALUES ("4", "Australia", "Diana Prince");
INSERT INTO "people" VALUES ("5", "Germany", "Erik Muller");
INSERT INTO "people" VALUES ("6", "France", "Fiona Dupont");
INSERT INTO "people" VALUES ("7", "Japan", "Goro Tanaka");
INSERT INTO "people" VALUES ("8", "Brazil", "Helena Costa");
INSERT INTO "people" VALUES ("9", "India", "Ishaan Patel");
INSERT INTO "people" VALUES ("10", "South Africa", "Jabu Nkosi");
INSERT INTO "poker_player" VALUES ("101", "1", "2.0", "150000.00");
INSERT INTO "poker_player" VALUES ("102", "3", "1.0", "500000.00");
INSERT INTO "poker_player" VALUES ("103", "5", "3.0", "75000.00");
INSERT INTO "poker_player" VALUES ("104", "7", "5.0", "20000.00");
INSERT INTO "poker_player" VALUES ("105", "9", "4.0", "120000.00");