Database Designing for Vote Buttons
问题 I am working on a Project in which i have Voting Options Up and Down similar to StackOverFlow. I am not much experienced in DB Designing and thus i got up with the following issue, First of all, here is my table structure for voting : voteId -----AUTO_INCREMENT with PRIMARY KEY. mediaId ----The Media for which user gives an up/down vote. userId -----The User who Voted. voteMode ---1 for Up Vote and 0 for Down Vote. This is an Integer Field. In this case if i have 100 users and 100 medias,