Titan/webapp/titanembeds/database/authenticated_users.py

13 lines
561 B
Python
Raw Normal View History

from titanembeds.database import db
import datetime
import time
class AuthenticatedUsers(db.Model):
__tablename__ = "authenticated_users"
2017-06-04 07:05:55 +02:00
id = db.Column(db.Integer, primary_key=True) # Auto increment id
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
2018-01-21 04:14:25 +01:00
self.client_id = client_id