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

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





INSERT INTO "people" VALUES ("1", "Alice", "1.75");
INSERT INTO "people" VALUES ("2", "Bob", "1.80");
INSERT INTO "people" VALUES ("3", "Charlie", "1.70");
INSERT INTO "people" VALUES ("4", "David", "1.90");
INSERT INTO "people" VALUES ("5", "Eve", "1.65");
INSERT INTO "people" VALUES ("6", "Frank", "1.85");
INSERT INTO "people" VALUES ("7", "Grace", "1.78");
INSERT INTO "people" VALUES ("8", "Heidi", "1.92");
INSERT INTO "people" VALUES ("9", "Ivan", "1.72");
INSERT INTO "people" VALUES ("10", "Judy", "1.88");
INSERT INTO "poker_player" VALUES ("101", "1", "5.0", "10.0", "10000.0");
INSERT INTO "poker_player" VALUES ("102", "2", "3.0", "5.0", "50000.0");
INSERT INTO "poker_player" VALUES ("103", "3", "10.0", "15.0", "5000.0");
INSERT INTO "poker_player" VALUES ("104", "4", "1.0", "2.0", "100000.0");
INSERT INTO "poker_player" VALUES ("105", "5", "8.0", "12.0", "8000.0");
INSERT INTO "poker_player" VALUES ("106", "6", "2.0", "3.0", "75000.0");
INSERT INTO "poker_player" VALUES ("107", "7", "6.0", "9.0", "12000.0");
INSERT INTO "poker_player" VALUES ("108", "8", "1.0", "1.0", "200000.0");
INSERT INTO "poker_player" VALUES ("109", "9", "7.0", "11.0", "9000.0");
INSERT INTO "poker_player" VALUES ("110", "10", "4.0", "4.0", "60000.0");