diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-08-20 22:21:24 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-08-20 22:21:24 +0200 |
| commit | ae52b69b14a6997d01aad66f49fbea7b5ca2dfe6 (patch) | |
| tree | 26f850a88565846a139868a4b85c715734751a41 /packages/meshbay-hub/src/meshbay_hub/db/models.py | |
| parent | c8af746c846b5dbc792f7e4f0d806647d513cc5c (diff) | |
| parent | 2e9490ca27047ae03e495d397abbe1aec1b2273a (diff) | |
| download | meshbay-ae52b69b14a6997d01aad66f49fbea7b5ca2dfe6.tar.gz | |
Merge feat/unified-group-management: wizard, public groups, activity sidebar
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/db/models.py')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/db/models.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/db/models.py b/packages/meshbay-hub/src/meshbay_hub/db/models.py index f1f11e2..3966bdc 100644 --- a/packages/meshbay-hub/src/meshbay_hub/db/models.py +++ b/packages/meshbay-hub/src/meshbay_hub/db/models.py @@ -103,7 +103,9 @@ class Group(Base): # group. Until then the group has no files, no key and nobody to serve it, so # it is shown to its owner only and is what `prune-groups` collects. Set once # and never cleared: a node going offline does not un-host a group. - hosted_at: Mapped[datetime | None] = mapped_column(DateTime(timezone=True)) + hosted_at: Mapped[datetime | None] = mapped_column(DateTime(timezone=True)) + last_activity_at: Mapped[datetime] = mapped_column( + DateTime(timezone=True), default=_now, nullable=False) members: Mapped[list["GroupMember"]] = relationship(back_populates="group") |