I'm trying to model a site similar to StackOverflow. It has a set of users and questions, and user vote on questions. Each user can only have one vote on each question.
What should the structure of my "VotesOnQuestions" table look like:
Use the Primary Key UserID, QuestionID.
That will enforce your requirement, and optimze searches.
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