In general, I have a character in the database that has a balance attribute:

balance = peewee.BigIntegerField(default=0) 

But players get to big balance and peewee gives an error (Integer out of range) As far as I know bigint has the maximum number (9223372036854775807)

How do I get around this limitation and what to use? I need the balance to continue to 10000000000000000000000000000000000000000000000000000000

    1 answer 1

    Open the manual in the section of numeric data types and look for another, more suitable data type:

    You are suitable numeric (similar decimal ), capable of storing up to 131072 characters before the comma.