mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-07-04 20:25:25 +02:00
Use a more optimal primary key and integer to store snowflakes
This commit is contained in:
@ -2,8 +2,7 @@ from titanembeds.database import db
|
||||
|
||||
class Patreon(db.Model):
|
||||
__tablename__ = "patreon"
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
user_id = db.Column(db.String(255), nullable=False) # User ID from patreon
|
||||
user_id = db.Column(db.BigInteger, nullable=False, primary_key=True) # User ID from patreon
|
||||
total_synced = db.Column(db.Integer, nullable=False) # Total cents synced on our end
|
||||
|
||||
def __init__(self, user_id, total_synced=0):
|
||||
|
Reference in New Issue
Block a user