persist raw attributes and tighten sync assertions

This commit is contained in:
qananasikq
2026-04-08 14:30:57 +03:00
parent b2d3902bcc
commit 447a88feed
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")