rDrama/files/classes/domains.py
2021-09-25 04:04:06 +02:00

18 lines
No EOL
409 B
Python

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