Explorar o código

更新 'models/knowledge_base.py'

许国洋 hai 8 meses
pai
achega
472da7c122
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      models/knowledge_base.py

+ 2 - 1
models/knowledge_base.py

@@ -14,11 +14,12 @@ class KnowledgeFile(Base):
 
     id = Column(Integer, primary_key=True)
     file_identifier = Column(String(50), unique=True, nullable=False, comment='文件唯一标识符')
-    file_path = Column(Text, nullable=False, comment='文件存储路径')
+    file_path = Column(Text, nullable=False, comment='文件路径')
     file_name = Column(String(255), nullable=False, comment='文件名字')
     is_deleted = Column(Integer, default=0, comment='是否删除')
     createTime = Column(DateTime, comment='创建时间')
     updateTime = Column(DateTime, comment='更新时间')
+    storage_file_name = Column(Text,comment = '文件存储名字')
     knowledge_base_code = Column(String(50), ForeignKey('knowledge_base.base_code'), nullable=False)
     knowledge_base = relationship("KnowledgeBase", back_populates="files")