I'm creating a online community for a soccer betting game available in my country. I've a pretty good idea how the whole system should work but I'm having some trouble figuring out the ideal database design and I need some help with it.
The usual work flow should be something like this:
Bonus Question: Since I'm still pretty much green at "SEO friendly" URLs I would also be interested in learning how would you name all the segments involved in this system.
I would very much appreciate any help in the design of a DB schema that can accommodate this whole scenario.
PS: I'll open up a bounty for this question, I'm currently having some issues with my Internet connection so I might take some time to read / comment on your answers.
Thanks in advance!
Quite a task, but here is my attempt:
Members
table stores members data; including PerformanceFactor
which is periodically re-calculated based on correctness of one's answers.Transactions
table tracks money deposits and withdrawals for each member. The Type
field could be 1=deposit, 2=withdrawal, 3=transfer from winnings.MemberID, ContestID
to prevent member placing several bets for a specific contestMemberBetID, QuestionID
to prevent member placing several answers for a specific question.DerivedAnswers
table contains answers obtained by "statistical analysis" of member answers for a specific contest. Place UNIQUE constraint on ContestID, QuestionID
to prevent repeating an answer for a specific question.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With