Seeking advice on the best approach for storing table tennis match data in a web application. I currently have a method in place that works, but I'm open to suggestions for improvement.
Here is my current idea:
matches: [
{
id: 1
datePlayed: isoString
player1: {playerId: 1, score: 10}
player2: {playerId: 2, score: 8}
}
]