add public_share_token column to NewChatThread

This commit is contained in:
CREDO23 2026-01-23 19:52:15 +02:00
parent df6943b248
commit be33b8920e

View file

@ -358,6 +358,14 @@ class NewChatThread(BaseModel, TimestampMixin):
index=True, index=True,
) )
# Public sharing - cryptographic token for public URL access
public_share_token = Column(
String(64),
nullable=True,
unique=True,
index=True,
)
# Relationships # Relationships
search_space = relationship("SearchSpace", back_populates="new_chat_threads") search_space = relationship("SearchSpace", back_populates="new_chat_threads")
created_by = relationship("User", back_populates="new_chat_threads") created_by = relationship("User", back_populates="new_chat_threads")