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:
jope-bm
2026-02-23 11:20:59 -07:00
committed by GitHub
parent 0f3889fdd0
commit da4d369c32
6 changed files with 279 additions and 0 deletions
+5
View File
@@ -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(