|
@@ -14,12 +14,14 @@ class KnowledgeBase(BaseModel):
|
|
|
name = Column(String(100), nullable=False, comment="知识库名称")
|
|
name = Column(String(100), nullable=False, comment="知识库名称")
|
|
|
collection_name_parent = Column(String(100), nullable=False, unique=True, comment="Milvus集合名称(Table Name)(父)")
|
|
collection_name_parent = Column(String(100), nullable=False, unique=True, comment="Milvus集合名称(Table Name)(父)")
|
|
|
collection_name_children = Column(String(100), nullable=True, comment="Milvus集合名称(Table Name)(子)")
|
|
collection_name_children = Column(String(100), nullable=True, comment="Milvus集合名称(Table Name)(子)")
|
|
|
- description = Column(Text, nullable=True, comment="描述")
|
|
|
|
|
|
|
+ description = Column(String(500), nullable=True, comment="描述")
|
|
|
status = Column(String(20), default="normal", comment="状态: normal(正常), test(测试), disabled(禁用)")
|
|
status = Column(String(20), default="normal", comment="状态: normal(正常), test(测试), disabled(禁用)")
|
|
|
document_count = Column(Integer, default=0, comment="文档数量")
|
|
document_count = Column(Integer, default=0, comment="文档数量")
|
|
|
is_deleted = Column(TINYINT, default=0, comment="是否删除")
|
|
is_deleted = Column(TINYINT, default=0, comment="是否删除")
|
|
|
- created_by = Column(String(128), nullable=True, comment="创建人")
|
|
|
|
|
- updated_by = Column(String(128), nullable=True, comment="修改人")
|
|
|
|
|
|
|
+ created_by = Column(String(500), nullable=True, comment="创建人")
|
|
|
|
|
+ updated_by = Column(String(500), nullable=True, comment="修改人")
|
|
|
|
|
+ created_time = Column(String(500), nullable=True, comment="创建时间")
|
|
|
|
|
+ updated_time = Column(String(500), nullable=True, comment="修改时间")
|
|
|
|
|
|
|
|
def __repr__(self):
|
|
def __repr__(self):
|
|
|
return f"<KnowledgeBase {self.name}>"
|
|
return f"<KnowledgeBase {self.name}>"
|