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:
@ -5,8 +5,8 @@ import time
|
||||
class AuthenticatedUsers(db.Model):
|
||||
__tablename__ = "authenticated_users"
|
||||
id = db.Column(db.Integer, primary_key=True) # Auto increment id
|
||||
guild_id = db.Column(db.String(255), nullable=False) # Guild pretaining to the authenticated user
|
||||
client_id = db.Column(db.String(255), nullable=False) # Client ID of the authenticated user
|
||||
guild_id = db.Column(db.BigInteger, nullable=False) # Guild pretaining to the authenticated user
|
||||
client_id = db.Column(db.BigInteger, nullable=False) # Client ID of the authenticated user
|
||||
|
||||
def __init__(self, guild_id, client_id):
|
||||
self.guild_id = guild_id
|
||||
|
Reference in New Issue
Block a user