rename entity.name to entity.title

This commit is contained in:
phernandez
2025-01-12 12:50:03 -06:00
parent d19d3b7583
commit 761fb708c6
11 changed files with 43 additions and 43 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ class Entity(Base):
# Core identity
id: Mapped[int] = mapped_column(Integer, primary_key=True)
name: Mapped[str] = mapped_column(String)
title: Mapped[str] = mapped_column(String)
entity_type: Mapped[str] = mapped_column(String)
entity_metadata: Mapped[Optional[dict]] = mapped_column(JSON, nullable=True)
content_type: Mapped[str] = mapped_column(String)
@@ -85,7 +85,7 @@ class Entity(Base):
return self.incoming_relations + self.outgoing_relations
def __repr__(self) -> str:
return f"Entity(id={self.id}, name='{self.name}', type='{self.entity_type}', summary='{self.summary}')"
return f"Entity(id={self.id}, name='{self.title}', type='{self.entity_type}', summary='{self.summary}')"
class ObservationCategory(str, Enum):