reference the chat in the podcast

This commit is contained in:
CREDO23 2025-10-23 23:49:49 +02:00 committed by thierryverse
parent aaa6ee22ed
commit 666ea87a9d
4 changed files with 45 additions and 3 deletions

View file

@ -205,6 +205,9 @@ class Podcast(BaseModel, TimestampMixin):
title = Column(String, nullable=False, index=True)
podcast_transcript = Column(JSON, nullable=False, default={})
file_location = Column(String(500), nullable=False, default="")
chat_id = Column(
Integer, ForeignKey("chats.id", ondelete="CASCADE"), nullable=True
) # If generated from a chat, this will be the chat id, else null ( can be from a document or a chat )
chat_state_version = Column(BigInteger, nullable=True)
search_space_id = Column(