I need to organize the storage of records in the database with the ability to mark them as favorites. The record looks like this.
{ "userId": 1, "id": 1, "title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit", "body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto" }
Here are the ways to implement it:
What better way to do?
one-to-many
orzero-to-many
) connection - MaxU