MarseyWorld/files/classes/domains.py

18 lines
394 B
Python
Raw Normal View History

2021-07-21 01:12:26 +00:00
from sqlalchemy import *
2021-08-04 15:35:10 +00:00
from files.__main__ import Base
2021-07-21 01:12:26 +00:00
2021-08-01 04:24:46 +00:00
class BannedDomain(Base):
2021-07-21 01:12:26 +00:00
2021-08-01 04:52:49 +00:00
__tablename__ = "banneddomains"
2021-07-21 01:12:26 +00:00
id = Column(Integer, primary_key=True)
domain = Column(String)
2021-08-03 12:16:57 +00:00
reason = Column(String)
2021-07-21 01:12:26 +00:00
class BadLink(Base):
__tablename__ = "badlinks"
id = Column(Integer, primary_key=True)
link = Column(String(512))
2021-08-03 12:16:57 +00:00
reason = Column(String)
2021-08-03 12:17:22 +00:00
autoban = Column(Boolean, default=False)