I have been tasked with a tough DB design as far as I can tell, I hope I am wrong.
I need to create a database that stores hand history for a poker player who plays holdem. Here is an example of a 1 hand on a small scale: (the **items** are just for description purpose)
**9 Players sit down at a table**
Player 1
Player 2...Player 9
**Hole cards are dealt**
Your hole cards (2 cards)
Player 1 acts (can call, raise, fold)
Player 2 acts (can call, raise, fold)...Player 9(can call, raise, fold).
**Potential for more rounds of betting if someone raises**
**Flop is dealt (3 face up cards) after all players call/fold**
Flopped cards
**another round of betting**
...so forth
So as you can see there are a lot of actions to track. The issue is, if someone folds, they are no longer in subsequent rounds of betting but obviously there will be cases when no none folds.
I am just trying to wrap my head around how I can create the database design.
Is each hand an entry to a table? - this would have 100's of fields to cover all possible actions
Do I store each player in their own table, give each hand a unique hand ID and store the players actions for each hand ID and round of betting?
I am open to any and all ideas here.
Thanks,
Robb