I am working on a Review System and I am having doubts about how to handle storing data in the database.
For this review system, there are three different ratings the users can input, I will call them ratingOne, ratingTwo and ratingThree. My current solution is having three different columns in the database called, respectively one_rating, two_rating and three_rating (where one, two and three are business informations that I prefer not to disclose).
Is there a better way for storing this data? For example, in the API request, this is handled as a sub-object in the JSON i.e. inside the POST json there is a second object that is as follows
[...],
"ratings": {
"one": 1,
"two": 2,
"three": 3,
},
[...]