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,
"Name" 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", "Alice Johnson");
INSERT INTO "people" VALUES ("2", "Bob Smith");
INSERT INTO "people" VALUES ("3", "Charlie Lee");
INSERT INTO "people" VALUES ("4", "Diana Prince");
INSERT INTO "people" VALUES ("5", "Evan Davis");
INSERT INTO "people" VALUES ("6", "Fiona Clark");
INSERT INTO "people" VALUES ("7", "George Hall");
INSERT INTO "people" VALUES ("8", "Hannah Scott");
INSERT INTO "people" VALUES ("9", "Ian Wright");
INSERT INTO "people" VALUES ("10", "Julia Kim");
INSERT INTO "poker_player" VALUES ("101", "1", "3", "1", "15", "250000.00");
INSERT INTO "poker_player" VALUES ("102", "2", "5", "2", "10", "500000.00");
INSERT INTO "poker_player" VALUES ("103", "3", "2", "3", "20", "150000.00");
INSERT INTO "poker_player" VALUES ("104", "4", "7", "1", "5", "750000.00");
INSERT INTO "poker_player" VALUES ("105", "5", "0", "10", "50", "30000.00");
INSERT INTO "poker_player" VALUES ("106", "6", "1", "4", "25", "120000.00");
INSERT INTO "poker_player" VALUES ("107", "7", "4", "2", "8", "600000.00");
INSERT INTO "poker_player" VALUES ("108", "8", "6", "1", "3", "800000.00");
INSERT INTO "poker_player" VALUES ("109", "9", "0", "15", "60", "20000.00");
INSERT INTO "poker_player" VALUES ("110", "10", "3", "5", "12", "450000.00");