mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-07-04 20:25:25 +02:00
Fixed up database modules in webapp
This commit is contained in:
@ -6,14 +6,14 @@ import string
|
||||
|
||||
class UnauthenticatedUsers(db.Model):
|
||||
__tablename__ = "unauthenticated_users"
|
||||
id = db.Column(db.Integer, primary_key=True) # Auto increment id
|
||||
guild_id = db.Column(db.String(255)) # Guild pretaining to the unauthenticated user
|
||||
username = db.Column(db.String(255)) # The username of the user
|
||||
discriminator = db.Column(db.Integer) # The discriminator to distinguish unauth users with each other
|
||||
user_key = db.Column(db.Text()) # The secret key used to identify the user holder
|
||||
ip_address = db.Column(db.String(255)) # The IP Address of the user
|
||||
last_timestamp = db.Column(db.TIMESTAMP) # The timestamp of when the user has last sent the heartbeat
|
||||
revoked = db.Column(db.Boolean()) # If the user's key has been revoked and a new one is required to be generated
|
||||
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
|
||||
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
|
||||
ip_address = db.Column(db.String(255), nullable=False) # The IP Address of the user
|
||||
last_timestamp = db.Column(db.TIMESTAMP, nullable=False) # The timestamp of when the user has last sent the heartbeat
|
||||
revoked = db.Column(db.Boolean(), nullable=False) # If the user's key has been revoked and a new one is required to be generated
|
||||
|
||||
def __init__(self, guild_id, username, discriminator, ip_address):
|
||||
self.guild_id = guild_id
|
||||
|
Reference in New Issue
Block a user