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

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





INSERT INTO "people" VALUES ("1", "1985-07-12", "1.75");
INSERT INTO "people" VALUES ("2", "1990-03-22", "1.82");
INSERT INTO "people" VALUES ("3", "1978-11-05", "1.90");
INSERT INTO "people" VALUES ("4", "1982-01-30", "1.90");
INSERT INTO "people" VALUES ("5", "1995-06-15", "1.68");
INSERT INTO "people" VALUES ("6", "1988-09-10", "1.85");
INSERT INTO "people" VALUES ("7", "1992-12-01", "1.60");
INSERT INTO "people" VALUES ("8", "1980-04-25", "1.90");
INSERT INTO "poker_player" VALUES ("101", "1", "3", "15", "50000");
INSERT INTO "poker_player" VALUES ("102", "2", "5", "10", "75000");
INSERT INTO "poker_player" VALUES ("103", "3", "2", "8", "120000");
INSERT INTO "poker_player" VALUES ("104", "4", "4", "12", "90000");
INSERT INTO "poker_player" VALUES ("105", "5", "1", "20", "30000");
INSERT INTO "poker_player" VALUES ("106", "6", "6", "7", "150000");
INSERT INTO "poker_player" VALUES ("107", "7", "0", "25", "10000");
INSERT INTO "poker_player" VALUES ("108", "8", "3", "5", "200000");