feat: use custom type to handle existing naive datetimes
This commit is contained in:
parent
e22abb383c
commit
39bdac1ecf
45 changed files with 210 additions and 84 deletions
|
@ -7,6 +7,7 @@ from app.brm.brn import BRN
|
|||
from app.extensions import db
|
||||
from app.models import AbstractConfiguration, AbstractResource
|
||||
from app.models.base import Group
|
||||
from app.models.types import AwareDateTime
|
||||
from app.util.onion import onion_hostname
|
||||
|
||||
|
||||
|
@ -36,7 +37,7 @@ class Onion(AbstractConfiguration):
|
|||
|
||||
group_id: Mapped[int] = mapped_column(db.ForeignKey("group.id"))
|
||||
domain_name: Mapped[str]
|
||||
cert_expiry: Mapped[datetime] = mapped_column(db.DateTime(timezone=True))
|
||||
cert_expiry: Mapped[datetime] = mapped_column(AwareDateTime())
|
||||
cert_sans: Mapped[str]
|
||||
onion_public_key: Mapped[bytes]
|
||||
onion_private_key: Mapped[bytes]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue