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", "John Smith");
INSERT INTO "people" VALUES ("2", "Canada", "Alice Johnson");
INSERT INTO "people" VALUES ("3", "United Kingdom", "Robert Brown");
INSERT INTO "people" VALUES ("4", "Australia", "Emily Davis");
INSERT INTO "people" VALUES ("5", "Germany", "Michael Müller");
INSERT INTO "people" VALUES ("6", "Brazil", "Ana Silva");
INSERT INTO "people" VALUES ("7", "France", "Jean Dupont");
INSERT INTO "people" VALUES ("8", "Japan", "Yuki Tanaka");
INSERT INTO "people" VALUES ("9", "Russia", "Ivan Petrov");
INSERT INTO "people" VALUES ("10", "South Africa", "Thabo Nkosi");
INSERT INTO "poker_player" VALUES ("101", "1", "5", "1", "2500000.00");
INSERT INTO "poker_player" VALUES ("102", "2", "3", "2", "1800000.50");
INSERT INTO "poker_player" VALUES ("103", "3", "7", "1", "3200000.75");
INSERT INTO "poker_player" VALUES ("104", "4", "0", "15", "50000.00");
INSERT INTO "poker_player" VALUES ("105", "5", "2", "3", "1200000.00");
INSERT INTO "poker_player" VALUES ("106", "6", "1", "5", "750000.25");
INSERT INTO "poker_player" VALUES ("107", "7", "4", "2", "2100000.00");
INSERT INTO "poker_player" VALUES ("108", "8", "0", "50", "10000.00");
INSERT INTO "poker_player" VALUES ("109", "9", "6", "1", "2800000.00");
INSERT INTO "poker_player" VALUES ("110", "10", "0", "100", "5000.00");