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,
"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", "John Smith", "1985-07-12");
INSERT INTO "people" VALUES ("2", "Canada", "Alice Johnson", "1990-03-25");
INSERT INTO "people" VALUES ("3", "United Kingdom", "Robert Brown", "1978-11-05");
INSERT INTO "people" VALUES ("4", "Australia", "Emily Davis", "1992-06-17");
INSERT INTO "people" VALUES ("5", "Germany", "Michael Müller", "1980-01-30");
INSERT INTO "people" VALUES ("6", "Brazil", "Ana Silva", "1988-09-09");
INSERT INTO "people" VALUES ("7", "France", "Jean Dupont", "1975-12-22");
INSERT INTO "people" VALUES ("8", "Japan", "Yuki Tanaka", "1995-04-14");
INSERT INTO "people" VALUES ("9", "Russia", "Ivan Petrov", "1983-08-03");
INSERT INTO "people" VALUES ("10", "South Africa", "Thabo Nkosi", "1987-02-28");
INSERT INTO "poker_player" VALUES ("101", "1", "2.0", "500000.00");
INSERT INTO "poker_player" VALUES ("102", "2", "5.0", "150000.00");
INSERT INTO "poker_player" VALUES ("103", "3", "1.0", "750000.00");
INSERT INTO "poker_player" VALUES ("104", "4", "10.0", "250000.00");
INSERT INTO "poker_player" VALUES ("105", "5", "3.0", "300000.00");
INSERT INTO "poker_player" VALUES ("106", "6", "7.0", "299999.99");
INSERT INTO "poker_player" VALUES ("107", "7", "4.0", "450000.00");
INSERT INTO "poker_player" VALUES ("108", "8", "6.0", "100000.00");
INSERT INTO "poker_player" VALUES ("109", "9", "2.5", "320000.00");
INSERT INTO "poker_player" VALUES ("110", "10", "8.0", "280000.00");