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,
"Birth_Date" 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", "1985-07-12");
INSERT INTO "people" VALUES ("2", "Canada", "1990-03-25");
INSERT INTO "people" VALUES ("3", "United Kingdom", "1978-11-05");
INSERT INTO "people" VALUES ("4", "Australia", "1982-01-30");
INSERT INTO "people" VALUES ("5", "Germany", "1995-06-15");
INSERT INTO "people" VALUES ("6", "Brazil", "1988-09-20");
INSERT INTO "people" VALUES ("7", "France", "1992-12-10");
INSERT INTO "people" VALUES ("8", "Japan", "1980-04-18");
INSERT INTO "people" VALUES ("9", "Russia", "1975-08-22");
INSERT INTO "people" VALUES ("10", "South Africa", "1983-05-05");
INSERT INTO "poker_player" VALUES ("101", "1", "3", "1", "150000.00");
INSERT INTO "poker_player" VALUES ("102", "2", "1", "5", "50000.00");
INSERT INTO "poker_player" VALUES ("103", "3", "5", "2", "250000.00");
INSERT INTO "poker_player" VALUES ("104", "4", "0", "10", "10000.00");
INSERT INTO "poker_player" VALUES ("105", "5", "2", "3", "75000.00");
INSERT INTO "poker_player" VALUES ("106", "6", "4", "1", "300000.00");
INSERT INTO "poker_player" VALUES ("107", "7", "1", "7", "10000.00");
INSERT INTO "poker_player" VALUES ("108", "8", "3", "4", "120000.00");
INSERT INTO "poker_player" VALUES ("109", "9", "0", "15", "5000.00");
INSERT INTO "poker_player" VALUES ("110", "10", "2", "6", "20000.00");