mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 22:47:04 +01:00
14 lines
531 B
Python
14 lines
531 B
Python
from titanembeds.database import db
|
|
|
|
class UserCSS(db.Model):
|
|
__tablename__ = "user_css"
|
|
id = db.Column(db.Integer, primary_key=True) # Auto increment id
|
|
name = db.Column(db.String(255)) # CSS Name
|
|
user_id = db.Column(db.String(255)) # Discord client ID of the owner of the css (can edit)
|
|
css = db.Column(db.Text()) # CSS contents
|
|
|
|
def __init__(self, name, user_id, css=None):
|
|
self.name = name
|
|
self.user_id = user_id
|
|
self.css = css
|