aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-09-10 16:29:41 +0100
committerGravatar Joe Banks <[email protected]>2024-09-10 17:02:57 +0100
commit371da4f6de975f39de906641ecc2fcf197e7abac (patch)
treebaa894a6f937268fc1fca93efec94475570f7f87
parentBump version to 2.7.0 (diff)
Add content_hash field to Message model
-rw-r--r--metricity/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/metricity/models.py b/metricity/models.py
index 86bb723..638e442 100644
--- a/metricity/models.py
+++ b/metricity/models.py
@@ -78,3 +78,4 @@ class Message(Base):
author_id: Mapped[str] = mapped_column(ForeignKey("users.id", ondelete="CASCADE"), index=True)
created_at = mapped_column(TZDateTime())
is_deleted: Mapped[bool] = mapped_column(default=False)
+ content_hash: Mapped[str] = mapped_column(nullable=True)