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

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





INSERT INTO "people" VALUES ("1", "USA", "Alice Smith");
INSERT INTO "people" VALUES ("2", "Canada", "Bob Johnson");
INSERT INTO "people" VALUES ("3", "UK", "Charlie Brown");
INSERT INTO "people" VALUES ("4", "USA", "David Lee");
INSERT INTO "people" VALUES ("5", "Australia", "Eve Davis");
INSERT INTO "people" VALUES ("6", "Germany", "Frank White");
INSERT INTO "people" VALUES ("7", "France", "Grace Taylor");
INSERT INTO "people" VALUES ("8", "Japan", "Henry Kim");
INSERT INTO "people" VALUES ("9", "USA", "Ivy Green");
INSERT INTO "people" VALUES ("10", "Canada", "Jack Black");
INSERT INTO "poker_player" VALUES ("101", "1", "150000.0");
INSERT INTO "poker_player" VALUES ("102", "3", "25000.50");
INSERT INTO "poker_player" VALUES ("103", "5", "7500.75");
INSERT INTO "poker_player" VALUES ("104", "7", "1200000.0");
INSERT INTO "poker_player" VALUES ("105", "9", "500.0");