fix parsing db and tests

This commit is contained in:
qananasikq
2026-04-08 14:23:50 +03:00
parent fd1d1d3c9f
commit 3edd706110
7 changed files with 112 additions and 13 deletions

View File

@@ -54,6 +54,7 @@ class Car(Base):
slug: Mapped[str] = mapped_column(String(), nullable=False)
last_seen_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), nullable=False, default=func.now())
content_hash: Mapped[str] = mapped_column(String(64), nullable=False, default="", index=True)
raw_attributes: Mapped[str | None] = mapped_column(Text, nullable=True)
images: Mapped[list["Image"]] = relationship("Image", back_populates="car", cascade="all, delete-orphan")