mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
feat: add created_by and last_updated_by user tracking to Entity (#602)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -94,6 +94,11 @@ class Entity(Base):
|
||||
onupdate=lambda: datetime.now().astimezone(),
|
||||
)
|
||||
|
||||
# Who created this entity (cloud user_profile_id UUID, null for local/CLI usage)
|
||||
created_by: Mapped[Optional[str]] = mapped_column(String, nullable=True, default=None)
|
||||
# Who last modified this entity (cloud user_profile_id UUID, null for local/CLI usage)
|
||||
last_updated_by: Mapped[Optional[str]] = mapped_column(String, nullable=True, default=None)
|
||||
|
||||
# Relationships
|
||||
project = relationship("Project", back_populates="entities")
|
||||
observations = relationship(
|
||||
|
||||
Reference in New Issue
Block a user