MarseyWorld/files/classes/domains.py

18 lines
394 B
Python

from sqlalchemy import *
from files.__main__ import Base
class BannedDomain(Base):
__tablename__ = "banneddomains"
id = Column(Integer, primary_key=True)
domain = Column(String)
reason = Column(String)
class BadLink(Base):
__tablename__ = "badlinks"
id = Column(Integer, primary_key=True)
link = Column(String(512))
reason = Column(String)
autoban = Column(Boolean, default=False)