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,
"Nationality" TEXT,
"Name" TEXT,
"Birth_Date" 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", "John Doe", "1980-01-15");
INSERT INTO "people" VALUES ("2", "Russia", "Ivan Petrov", "1975-03-20");
INSERT INTO "people" VALUES ("3", "Canada", "Alice Smith", "1990-07-01");
INSERT INTO "people" VALUES ("4", "Russia", "Elena Volkov", "1988-11-10");
INSERT INTO "people" VALUES ("5", "Germany", "Michael Schmidt", "1982-05-25");
INSERT INTO "people" VALUES ("6", "USA", "Emily White", "1995-09-12");
INSERT INTO "people" VALUES ("7", "Russia", "Dmitry Ivanov", "1970-02-28");
INSERT INTO "people" VALUES ("8", "UK", "Sarah Brown", "1985-04-03");
INSERT INTO "people" VALUES ("9", "Australia", "David Green", "1992-06-18");
INSERT INTO "people" VALUES ("10", "France", "Sophie Dubois", "1983-10-05");
INSERT INTO "poker_player" VALUES ("1", "1", "1500000.0");
INSERT INTO "poker_player" VALUES ("2", "2", "800000.0");
INSERT INTO "poker_player" VALUES ("3", "3", "2500000.0");
INSERT INTO "poker_player" VALUES ("4", "4", "600000.0");
INSERT INTO "poker_player" VALUES ("5", "5", "1800000.0");
INSERT INTO "poker_player" VALUES ("6", "6", "300000.0");
INSERT INTO "poker_player" VALUES ("7", "7", "100000.0");
INSERT INTO "poker_player" VALUES ("8", "8", "2200000.0");
INSERT INTO "poker_player" VALUES ("9", "9", "950000.0");
INSERT INTO "poker_player" VALUES ("10", "10", "1300000.0");