indexing the not after field in the cert table

This commit is contained in:
Hossein Shafagh
2019-05-30 08:55:30 -07:00
parent 3680d523d4
commit 13d46ae42e
2 changed files with 28 additions and 0 deletions

View File

@ -106,6 +106,8 @@ class Certificate(db.Model):
not_before = Column(ArrowType)
not_after = Column(ArrowType)
not_after_ix = Index('ix_certificates_not_after', not_after.desc())
date_created = Column(ArrowType, PassiveDefault(func.now()), nullable=False)
signing_algorithm = Column(String(128))