fix(explorer): resolve notion sync, add debug logging, and fix UI display for industries v0.6.1

This commit is contained in:
2026-01-20 15:35:26 +00:00
parent bca78069f6
commit b5f12dd0fa
6 changed files with 129 additions and 185 deletions

View File

@@ -87,18 +87,20 @@ class Industry(Base):
notion_id = Column(String, unique=True, index=True, nullable=True) # Notion Page ID
name = Column(String, unique=True, index=True)
description = Column(Text, nullable=True) # Abgrenzung
description = Column(Text, nullable=True) # Definition aus Notion
# Notion Sync Fields
industry_group = Column(String, nullable=True)
# Notion Sync Fields (V3.0+)
status_notion = Column(String, nullable=True) # e.g. "P1 Focus Industry"
is_focus = Column(Boolean, default=False) # Derived from status_notion
whale_threshold = Column(Float, nullable=True)
# NEW SCHEMA FIELDS (from MIGRATION_PLAN)
metric_type = Column(String, nullable=True) # Unit_Count, Area_in, Area_out
min_requirement = Column(Float, nullable=True)
scraper_keywords = Column(Text, nullable=True)
core_unit = Column(String, nullable=True)
proxy_factor = Column(String, nullable=True)
whale_threshold = Column(Float, nullable=True)
proxy_factor = Column(Float, nullable=True)
scraper_search_term = Column(Text, nullable=True)
scraper_keywords = Column(Text, nullable=True) # JSON-Array von Strings
standardization_logic = Column(Text, nullable=True) # Formel, z.B. "wert * 25m²"
# Optional link to a Robotics Category (the "product" relevant for this industry)
primary_category_id = Column(Integer, ForeignKey("robotics_categories.id"), nullable=True)