rDrama/files/classes/domains.py
justcool393 9b94e524bb fix MovedIn20Warning
shouldn't actually cause any issues currently since SQLAlchemy is (to my annoyance)
import *ed everywhere but.
2023-03-14 13:32:47 -05:00

14 lines
330 B
Python

from sqlalchemy import *
from files.classes.base import Base
class BannedDomain(Base):
__tablename__ = "banneddomains"
domain = Column(String, primary_key=True)
reason = Column(String, nullable=False)
Index(
'domains_domain_trgm_idx',
domain,
postgresql_using='gin',
postgresql_ops={'description':'gin_trgm_ops'}
)