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:
@ -7,7 +7,7 @@ import string
|
||||
class UnauthenticatedUsers(db.Model):
|
||||
__tablename__ = "unauthenticated_users"
|
||||
id = db.Column(db.Integer, primary_key=True, nullable=False) # Auto increment id
|
||||
guild_id = db.Column(db.String(255), nullable=False) # Guild pretaining to the unauthenticated user
|
||||
guild_id = db.Column(db.BigInteger, nullable=False) # Guild pretaining to the unauthenticated user
|
||||
username = db.Column(db.String(255), nullable=False) # The username of the user
|
||||
discriminator = db.Column(db.Integer, nullable=False) # The discriminator to distinguish unauth users with each other
|
||||
user_key = db.Column(db.Text(), nullable=False) # The secret key used to identify the user holder
|
||||
|
Reference in New Issue
Block a user