Move devs to the administrators table

This commit is contained in:
Jeremy Zhang
2017-07-22 02:06:45 +00:00
parent a34f43a9d0
commit f4608794a0
8 changed files with 177 additions and 11 deletions

View File

@ -4,4 +4,11 @@ class Cosmetics(db.Model):
__tablename__ = "cosmetics"
id = db.Column(db.Integer, primary_key=True) # Auto increment id
user_id = db.Column(db.String(255), nullable=False) # Discord user id of user of cosmetics
css = db.Column(db.Boolean(), nullable=False) # If they can create/edit custom CSS
css = db.Column(db.Boolean(), nullable=False) # If they can create/edit custom CSS
def __init__(self, user_id, **kwargs):
self.name = name
self.user_id = user_id
if "css" in kwargs:
self.css = kwargs["css"]