Database table structure for user settings

前端 未结 2 1106
悲&欢浪女
悲&欢浪女 2021-01-07 05:16

I need to add a table to store user settings. For the first time users will have about 10 different settings, but I\'m sure there will be more.

What scalable structu

2条回答
  •  鱼传尺愫
    2021-01-07 05:45

    Settings table columns -: setting_id | setting_code | setting_name | setting_description

    User table columns -: user_id | user_name | user_password | etcetera

    User-settings table columns -: user_setting_id | user_id_fk | setting_code_fk | setting_value

    structure like so:

    Users --> User Settings <---- Settings

    Hope this helps.

提交回复
热议问题