mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 10:22:43 +01:00
14 lines
524 B
Python
14 lines
524 B
Python
from titanembeds.database import db, Base
|
|
|
|
class Guilds(Base):
|
|
__tablename__ = "guilds"
|
|
id = db.Column(db.Integer, primary_key=True) # Auto incremented id
|
|
guild_id = db.Column(db.String(255)) # Discord guild id
|
|
unauth_users = db.Column(db.Boolean()) # If allowed unauth users
|
|
|
|
def __init__(self, guild_id):
|
|
self.guild_id = guild_id
|
|
self.unauth_users = True # defaults to true
|
|
|
|
def __repr__(self):
|
|
return '<Guilds {0} {1}>'.format(self.id, self.guild_id) |