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,
"Name" 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", "Alice Johnson", "1985-04-12");
INSERT INTO "people" VALUES ("2", "Bob Smith", "1990-11-23");
INSERT INTO "people" VALUES ("3", "Charlie Lee", "1978-07-30");
INSERT INTO "people" VALUES ("4", "Diana Prince", "1982-01-15");
INSERT INTO "people" VALUES ("5", "Evan Davis", "1995-09-05");
INSERT INTO "people" VALUES ("6", "Fiona Green", "1988-03-22");
INSERT INTO "people" VALUES ("7", "George King", "1975-12-10");
INSERT INTO "people" VALUES ("8", "Hannah Scott", "1992-06-18");
INSERT INTO "people" VALUES ("9", "Ian Clark", "1980-08-27");
INSERT INTO "people" VALUES ("10", "Julia Adams", "1983-05-14");
INSERT INTO "poker_player" VALUES ("101", "1", "5", "1", "150000");
INSERT INTO "poker_player" VALUES ("102", "2", "3", "2", "180000");
INSERT INTO "poker_player" VALUES ("103", "3", "7", "1", "199999.99");
INSERT INTO "poker_player" VALUES ("104", "4", "2", "3", "250000");
INSERT INTO "poker_player" VALUES ("105", "5", "0", "10", "50000");
INSERT INTO "poker_player" VALUES ("106", "6", "7", "1", "199000");
INSERT INTO "poker_player" VALUES ("107", "7", "4", "5", "300000");
INSERT INTO "poker_player" VALUES ("108", "8", "7", "2", "199999");
INSERT INTO "poker_player" VALUES ("109", "9", "1", "4", "120000");
INSERT INTO "poker_player" VALUES ("110", "10", "6", "1", "199500");