Betting PDT
Opened this issue · 0 comments
ajn2004 commented
Attempt to explain the database logic so we can build the software logic to match it
To make a bet, we need
bet.py
- An event with outcomes for the player to bet on
- What outcome the player bets will result
- The amount the player wishes to wager
betEvent.py
- An event can have many bets
- Events have an expiration at which point a result is achieved
- Events have a variety of different possible outcomes
betOutcome.py
- An outcome has to belong to a single event
- Outcomes should be named
I think it may make sense to backref the outcome column on bet.py to the betOutcome.py id directly, and drop the outNumber column, but it will require some thought.