I want to store multiple values into a single row for column name, value. This is what I have for now.
Table user_values_definition
id | user_status | name | value |
---|---|---|---|
1 | approved | User can't access section 1, not qualified | no_access_section_1 |
2 | approved | User Can't access section 1, User can't access section 5 | no_access_section_1, no_access_section_3 |
Table user_values
id | user_id | user_values_definition_id |
---|---|---|
1 | 121000 | 2 |
What is the best way to store data in order to have a good structure of the database and have a good performance. For now I can think of a JSON data type to keep multiple values but I don't know what to say