CRITICAL FIX: Add synthesis_data to Notebook model

- Added synthesis_data = Column(Text) to Notebook class
- Column exists in DB, now in Python model too
- GET synthesis endpoint will work after reload
- Synthesis will persist properly

Also deleted 9 spam chat sessions (81-89).
This commit is contained in:
DJP 2025-10-03 10:50:22 -04:00
parent dc128f7ce3
commit dc85bca8d8

View file

@ -72,6 +72,7 @@ class Notebook(Base):
model_type = Column(String(50), default='openai', nullable=False) # 'openai' or 'gemini'
podcast_path = Column(String(500), nullable=True)
podcast_generated_at = Column(DateTime, nullable=True)
synthesis_data = Column(Text, nullable=True)
created_at = Column(DateTime, default=datetime.utcnow)
updated_at = Column(DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)