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,
"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", "Brazil", "1978-11-05");
INSERT INTO "people" VALUES ("4", "Germany", "1982-01-17");
INSERT INTO "people" VALUES ("5", "Japan", "1995-09-30");
INSERT INTO "people" VALUES ("6", "Australia", "1988-06-22");
INSERT INTO "people" VALUES ("7", "Russia", "1975-12-10");
INSERT INTO "people" VALUES ("8", "France", "1992-04-14");
INSERT INTO "people" VALUES ("9", "South Africa", "1980-08-03");
INSERT INTO "people" VALUES ("10", "United Kingdom", "1983-05-19");
INSERT INTO "poker_player" VALUES ("101", "1", "2.0", "1500000.00");
INSERT INTO "poker_player" VALUES ("102", "2", "1.0", "2500000.50");
INSERT INTO "poker_player" VALUES ("103", "3", "3.0", "500000.00");
INSERT INTO "poker_player" VALUES ("104", "4", "1.0", "2500000.50");
INSERT INTO "poker_player" VALUES ("105", "5", "5.0", "75000.00");
INSERT INTO "poker_player" VALUES ("106", "6", "2.0", "1200000.00");
INSERT INTO "poker_player" VALUES ("107", "7", "4.0", "300000.00");
INSERT INTO "poker_player" VALUES ("108", "8", "1.0", "2500000.50");
INSERT INTO "poker_player" VALUES ("109", "9", "6.0", "50000.00");
INSERT INTO "poker_player" VALUES ("110", "10", "2.0", "1500000.00");