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", "United States", "Alice Johnson");
INSERT INTO "people" VALUES ("2", "Canada", "Bob Smith");
INSERT INTO "people" VALUES ("3", "United Kingdom", "Charlie Brown");
INSERT INTO "people" VALUES ("4", "Australia", "Diana Prince");
INSERT INTO "people" VALUES ("5", "Germany", "Erik Müller");
INSERT INTO "people" VALUES ("6", "Brazil", "Fernanda Silva");
INSERT INTO "people" VALUES ("7", "Japan", "Hiro Tanaka");
INSERT INTO "people" VALUES ("8", "France", "Isabelle Dupont");
INSERT INTO "people" VALUES ("9", "Russia", "Ivan Petrov");
INSERT INTO "people" VALUES ("10", "South Africa", "Jabu Nkosi");
INSERT INTO "poker_player" VALUES ("101", "1", "5.0", "1.0", "1500000.00");
INSERT INTO "poker_player" VALUES ("102", "2", "2.0", "3.0", "500000.00");
INSERT INTO "poker_player" VALUES ("103", "3", "0.0", "10.0", "20000.00");
INSERT INTO "poker_player" VALUES ("104", "4", "7.0", "2.0", "2500000.00");
INSERT INTO "poker_player" VALUES ("105", "5", "3.0", "5.0", "750000.00");
INSERT INTO "poker_player" VALUES ("106", "6", "0.0", "15.0", "10000.00");
INSERT INTO "poker_player" VALUES ("107", "7", "1.0", "8.0", "120000.00");
INSERT INTO "poker_player" VALUES ("108", "8", "4.0", "4.0", "900000.00");
INSERT INTO "poker_player" VALUES ("109", "9", "7.0", "1.0", "3000000.00");
INSERT INTO "poker_player" VALUES ("110", "10", "2.0", "6.0", "400000.00");