Poll Database Schema

前端 未结 4 1492
我寻月下人不归
我寻月下人不归 2021-02-01 05:15

What is the best database schema for polls? Is one-to-many relationship good for this? I\'m thinking about having two tables:

poll_questions
    int id
    varch         


        
4条回答
  •  你的背包
    2021-02-01 05:23

    Note: the "votes" column of the poll_answers table isn't necessary. Votes can be determined by querying the Poll_voting_history table.

提交回复
热议问题