What fields are needed to store the account? [closed]

We need a model of a ping pong match. Need a model from which the following data can be taken: Time | Player1 | Player2 | Player1's won sets | Player2's won sets | the score on sets <

for example 16.01.01 | oleg | danil | 3 | 0 | 11:3, 11: 6, 11: 9

So far, the model looks like this<<>>

class Game(models.Model):
    date = models.DateTimeField(auto_now_add=True)
    player1 = models.CharField()
    player2 = models.CharField()
    sets1 = models.IntegerField()
    sets2 = models.IntegerField()

Which fields are needed to store the score? It is also important that the number of sets can be different, and accordingly the number of accounts by set too.

Вернуться на верх