
shouldn't actually cause any issues currently since SQLAlchemy is (to my annoyance) import *ed everywhere but.
14 lines
330 B
Python
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'}
|
|
)
|