feat(post): add nullable description + attachment_count (migration 0007)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-18 09:38:43 -04:00
parent 3f2f50cdb9
commit 15dac50367
3 changed files with 82 additions and 0 deletions
+3
View File
@@ -28,6 +28,9 @@ class Post(Base):
raw_metadata: Mapped[dict | None] = mapped_column(JSON, nullable=True)
description: Mapped[str | None] = mapped_column(Text, nullable=True)
attachment_count: Mapped[int | None] = mapped_column(Integer, nullable=True)
downloaded_at: Mapped[datetime] = mapped_column(
DateTime(timezone=True), nullable=False, server_default=func.now()
)