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", "Japan", "1975-12-10");
INSERT INTO "people" VALUES ("8", "France", "1992-04-18");
INSERT INTO "people" VALUES ("9", "Russia", "1980-08-22");
INSERT INTO "people" VALUES ("10", "South Africa", "1983-05-05");
INSERT INTO "poker_player" VALUES ("101", "1", "15", "1", "2500000.00");
INSERT INTO "poker_player" VALUES ("102", "2", "0", "25", "15000.00");
INSERT INTO "poker_player" VALUES ("103", "3", "7", "3", "750000.00");
INSERT INTO "poker_player" VALUES ("104", "4", "20", "1", "5000000.00");
INSERT INTO "poker_player" VALUES ("105", "5", "0", "100", "500.00");
INSERT INTO "poker_player" VALUES ("106", "6", "3", "10", "120000.00");
INSERT INTO "poker_player" VALUES ("107", "7", "0", "0", "0.00");
INSERT INTO "poker_player" VALUES ("108", "8", "1", "5", "30000.00");
INSERT INTO "poker_player" VALUES ("109", "9", "10", "2", "1000000.00");
INSERT INTO "poker_player" VALUES ("110", "10", "0", "50", "2000.00");