feat: Implement Notion sync for Industries and Robotics Categories

This commit is contained in:
2026-01-19 11:28:08 +00:00
parent 8bdc9983e6
commit b74b834212
4 changed files with 193 additions and 2 deletions

View File

@@ -84,9 +84,21 @@ class Industry(Base):
__tablename__ = "industries"
id = Column(Integer, primary_key=True, index=True)
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
is_focus = Column(Boolean, default=False)
# Notion Sync Fields
industry_group = Column(String, nullable=True)
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)
min_requirement = Column(Float, nullable=True)
scraper_keywords = Column(Text, nullable=True)
core_unit = Column(String, nullable=True)
proxy_factor = Column(String, nullable=True)
# Optional link to a Robotics Category (the "product" relevant for this industry)
primary_category_id = Column(Integer, ForeignKey("robotics_categories.id"), nullable=True)
@@ -154,6 +166,8 @@ class RoboticsCategory(Base):
__tablename__ = "robotics_categories"
id = Column(Integer, primary_key=True, index=True)
notion_id = Column(String, unique=True, index=True, nullable=True) # Notion Page ID
key = Column(String, unique=True, index=True) # e.g. "cleaning", "service"
name = Column(String) # Display Name
description = Column(Text) # The core definition used in LLM prompts