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,
PRIMARY KEY ("People_ID")
);

CREATE TABLE "poker_player" (
"Poker_Player_ID" INT,
"People_ID" INT,
"Money_Rank" FLOAT,
"Earnings" FLOAT,
PRIMARY KEY ("Poker_Player_ID"),
FOREIGN KEY ("People_ID") REFERENCES "people"("People_ID")
);





INSERT INTO "people" VALUES ("1", "United States");
INSERT INTO "people" VALUES ("2", "Canada");
INSERT INTO "people" VALUES ("3", "United Kingdom");
INSERT INTO "people" VALUES ("4", "Australia");
INSERT INTO "people" VALUES ("5", "Germany");
INSERT INTO "people" VALUES ("6", "France");
INSERT INTO "people" VALUES ("7", "Brazil");
INSERT INTO "people" VALUES ("8", "Japan");
INSERT INTO "people" VALUES ("9", "Russia");
INSERT INTO "people" VALUES ("10", "South Africa");
INSERT INTO "people" VALUES ("11", "United States");
INSERT INTO "people" VALUES ("12", "Canada");
INSERT INTO "people" VALUES ("13", "United Kingdom");
INSERT INTO "people" VALUES ("14", "Australia");
INSERT INTO "people" VALUES ("15", "Germany");
INSERT INTO "poker_player" VALUES ("101", "1", "1.0", "15000000.00");
INSERT INTO "poker_player" VALUES ("102", "2", "2.0", "12000000.00");
INSERT INTO "poker_player" VALUES ("103", "3", "3.0", "11000000.00");
INSERT INTO "poker_player" VALUES ("104", "4", "4.0", "9000000.00");
INSERT INTO "poker_player" VALUES ("105", "5", "5.0", "8500000.00");
INSERT INTO "poker_player" VALUES ("106", "6", "6.0", "8000000.00");
INSERT INTO "poker_player" VALUES ("107", "7", "7.0", "7500000.00");
INSERT INTO "poker_player" VALUES ("108", "8", "8.0", "7000000.00");
INSERT INTO "poker_player" VALUES ("109", "9", "9.0", "6500000.00");
INSERT INTO "poker_player" VALUES ("110", "10", "10.0", "6000000.00");
INSERT INTO "poker_player" VALUES ("111", "11", "11.0", "5500000.00");
INSERT INTO "poker_player" VALUES ("112", "12", "12.0", "5000000.00");
INSERT INTO "poker_player" VALUES ("113", "13", "13.0", "4500000.00");
INSERT INTO "poker_player" VALUES ("114", "14", "14.0", "4000000.00");
INSERT INTO "poker_player" VALUES ("115", "15", "15.0", "3500000.00");