Design Pattern to add columns in database table dynamically

后端 未结 3 1594
旧巷少年郎
旧巷少年郎 2021-01-13 14:20

The user wants to add new fields in UI dynamically. This new field should get stored in database and they should be allowed to perform CRUD on it.

Now I can do this

3条回答
  •  不要未来只要你来
    2021-01-13 14:35

    Find out what the maximum number of user-added fields will be and add them before hand. For example 'User1', 'User2', 'User3', 'User4'...etc. You can then enable the fields on the UI based on some configurable settings.

提交回复
热议问题