123456789101112131415 |
- from sqlalchemy import Column, Text, BigInteger, TIMESTAMP, VARCHAR, ForeignKey
- from sqlalchemy.orm import declarative_base
- Base = declarative_base()
- class KeywordClustering(Base):
- __tablename__ = "keyword_clustering"
- id = Column(BigInteger, primary_key=True, autoincrement=True, comment="主键id")
- keyword_id = Column(BigInteger, nullable=False, comment="关键词id")
- keyword_summary = Column(Text, nullable=True, comment="关键词知识")
- create_time = Column(TIMESTAMP, nullable=False, server_default="CURRENT_TIMESTAMP", comment="创建时间")
- update_time = Column(TIMESTAMP, nullable=False, server_default="CURRENT_TIMESTAMP", onupdate="CURRENT_TIMESTAMP",
- comment="更新时间")
|