Database design for user settings

前端 未结 5 566
误落风尘
误落风尘 2020-12-02 04:30

Which of the following options, if any, is considered best practice when designing a table used to store user settings?

(OPTION 1)

USER_SETTINGS
-Id         


        
5条回答
  •  星月不相逢
    2020-12-02 04:52

    Consider this simple example.

    If you have 2 tables, UserTable(contains user details) and SettingsTable(contains settings details). Then create a new table UserSettings for relating the UserTable and SettingsTable as shown below

    user settings data base design

    Hope you will found the right solution from this example.

提交回复
热议问题