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 Smith", "1980-05-15");
INSERT INTO "people" VALUES ("2", "Bob Johnson", "1975-11-22");
INSERT INTO "people" VALUES ("3", "Charlie Brown", "1990-01-01");
INSERT INTO "people" VALUES ("4", "Diana Prince", "1988-07-04");
INSERT INTO "people" VALUES ("5", "Eve Adams", "1995-03-10");
INSERT INTO "people" VALUES ("6", "Frank White", "1970-09-20");
INSERT INTO "people" VALUES ("7", "Grace Lee", "1982-12-25");
INSERT INTO "people" VALUES ("8", "Henry King", "1993-06-18");
INSERT INTO "people" VALUES ("9", "Ivy Green", "1987-02-28");
INSERT INTO "people" VALUES ("10", "Jack Black", "1978-04-12");
INSERT INTO "people" VALUES ("11", "Karen Blue", "1991-08-08");
INSERT INTO "people" VALUES ("12", "Liam Red", "1985-10-30");
INSERT INTO "poker_player" VALUES ("1", "1", "5.0", "1.0", "150000.0");
INSERT INTO "poker_player" VALUES ("2", "2", "3.0", "2.0", "75000.0");
INSERT INTO "poker_player" VALUES ("3", "3", "1.0", "5.0", "25000.0");
INSERT INTO "poker_player" VALUES ("4", "4", "8.0", "1.0", "300000.0");
INSERT INTO "poker_player" VALUES ("5", "5", "2.0", "3.0", "50000.0");
INSERT INTO "poker_player" VALUES ("6", "6", "0.0", "0.0", "1000.0");
INSERT INTO "poker_player" VALUES ("7", "7", "4.0", "2.0", "100000.0");
INSERT INTO "poker_player" VALUES ("8", "8", "1.0", "4.0", "20000.0");
INSERT INTO "poker_player" VALUES ("9", "9", "0.0", "0.0", "500.0");
INSERT INTO "poker_player" VALUES ("10", "10", "6.0", "1.0", "200000.0");
INSERT INTO "poker_player" VALUES ("11", "11", "0.0", "0.0", "500.0");
INSERT INTO "poker_player" VALUES ("12", "12", "0.0", "0.0", "500.0");