Update tool panel
This commit is contained in:
@@ -82,6 +82,24 @@ class ASRModel(Base):
|
||||
user = relationship("User")
|
||||
|
||||
|
||||
# ============ Tool Resource ============
|
||||
class ToolResource(Base):
|
||||
__tablename__ = "tool_resources"
|
||||
|
||||
id: Mapped[str] = mapped_column(String(64), primary_key=True)
|
||||
user_id: Mapped[Optional[int]] = mapped_column(Integer, ForeignKey("users.id"), index=True, nullable=True)
|
||||
name: Mapped[str] = mapped_column(String(128), nullable=False)
|
||||
description: Mapped[str] = mapped_column(String(512), nullable=False, default="")
|
||||
category: Mapped[str] = mapped_column(String(32), nullable=False, default="system") # system/query
|
||||
icon: Mapped[str] = mapped_column(String(64), nullable=False, default="Wrench")
|
||||
enabled: Mapped[bool] = mapped_column(default=True)
|
||||
is_system: Mapped[bool] = mapped_column(default=False)
|
||||
created_at: Mapped[datetime] = mapped_column(DateTime, default=datetime.utcnow)
|
||||
updated_at: Mapped[datetime] = mapped_column(DateTime, default=datetime.utcnow)
|
||||
|
||||
user = relationship("User")
|
||||
|
||||
|
||||
# ============ Assistant ============
|
||||
class Assistant(Base):
|
||||
__tablename__ = "assistants"
|
||||
|
||||
Reference in New Issue
Block a user