|
@@ -12,7 +12,7 @@ from sqlalchemy.orm import relationship
|
|
class KnowledgeFile(Base):
|
|
class KnowledgeFile(Base):
|
|
__tablename__ = 'knowledge_file'
|
|
__tablename__ = 'knowledge_file'
|
|
|
|
|
|
- id = Column(Integer, primary_key=True)
|
|
|
|
|
|
+ id = Column(Integer, primary_key=True, autoincrement=True, comment="id")
|
|
file_identifier = Column(String(50), unique=True, nullable=False, comment='文件唯一标识符')
|
|
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='文件名字')
|
|
file_name = Column(String(255), nullable=False, comment='文件名字')
|
|
@@ -26,7 +26,9 @@ class KnowledgeFile(Base):
|
|
|
|
|
|
class KnowledgeBase(Base):
|
|
class KnowledgeBase(Base):
|
|
__tablename__ = 'knowledge_base'
|
|
__tablename__ = 'knowledge_base'
|
|
- reportId = Column(String(255), primary_key=True)
|
|
|
|
|
|
+ id = Column(Integer, primary_key=True, autoincrement=True, comment="id")
|
|
|
|
+ reportId = Column(String(255),comment='报告ID')
|
|
|
|
+ reportUid = Column(String(255),comment='报告UUID')
|
|
reportName = Column(String(400), comment='报告名称')
|
|
reportName = Column(String(400), comment='报告名称')
|
|
subject = Column(String(100), comment='主题词')
|
|
subject = Column(String(100), comment='主题词')
|
|
eventType = Column(String(10), comment='事件类型')
|
|
eventType = Column(String(10), comment='事件类型')
|