Refactor code structure for improved readability and maintainability

This commit is contained in:
bolade
2025-10-06 12:57:08 +01:00
parent a2b3ceedbe
commit c199f5423a
6 changed files with 332 additions and 10 deletions
+2 -4
View File
@@ -139,9 +139,7 @@ class InvestorTable(Base, TimestampMixin):
headquarters = Column(String, nullable=True)
# AUM fields
aum = Column(
String, nullable=True
) # Store as string to preserve currency (e.g., "EUR 850,000,000")
aum = Column(Integer, nullable=True) # Store as integer for numerical filtering
aum_as_of_date = Column(String, nullable=True)
aum_source_url = Column(String, nullable=True)
@@ -317,7 +315,7 @@ class SectorTable(Base, TimestampMixin):
)
projects = relationship(
"ProjectTable", secondary=project_sector_association, back_populates="projects"
"ProjectTable", secondary=project_sector_association, back_populates="sector"
)