Answer the question
In order to leave comments, you need to log in
In what entity to store the results of the game?
Good afternoon.
The question may be naive, but still ...
There are 2 entities Users and Game. You need somewhere to store the "points" (total score) of each user for a given game (there can be several games, and they will be other entities). Where is it better to store this information: in each User, in the Game, or even create a 3rd entity and store it there? And why?
Thanks in advance. :)
Answer the question
In order to leave comments, you need to log in
The result of the game is a piece of information about the game, not the user. The result of the game, in turn, consists of information about how many points each user has. Accordingly, the result of the game should be a separate entity that is part of the entity "Game"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question