rDrama/files/classes/domains.py

13 lines
325 B
Python
Raw Normal View History

2022-05-04 23:09:46 +00:00
from sqlalchemy import *
from files.__main__ import Base
2022-09-12 10:19:35 +00:00
import time
2022-05-04 23:09:46 +00:00
class BannedDomain(Base):
__tablename__ = "banneddomains"
domain = Column(String, primary_key=True)
reason = Column(String)
2022-09-19 19:24:16 +00:00
created_utc = Column(Integer, default=int(time.time()))
def __repr__(self):
return f"<BannedDomain(domain={self.domain})>"