2018-07-10 09:04:19 +02:00
|
|
|
from titanembeds.database import db
|
2017-05-27 04:00:50 +02:00
|
|
|
|
2018-07-10 09:04:19 +02:00
|
|
|
class UnauthenticatedUsers(db.Model):
|
2017-05-27 04:00:50 +02:00
|
|
|
__tablename__ = "unauthenticated_users"
|
|
|
|
id = db.Column(db.Integer, primary_key=True) # Auto increment id
|
2018-01-23 22:08:55 +01:00
|
|
|
guild_id = db.Column(db.BigInteger) # Guild pretaining to the unauthenticated user
|
2017-05-27 04:00:50 +02:00
|
|
|
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
|
2018-07-10 09:04:19 +02:00
|
|
|
revoked = db.Column(db.Boolean()) # If the user's key has been revoked and a new one is required to be generated
|