12345678910111213 |
- from sqlalchemy import Column, Text, BigInteger, TIMESTAMP, VARCHAR
- from sqlalchemy.orm import declarative_base
- Base = declarative_base()
- class KeywordWithContent(Base):
- __tablename__ = "keyword_with_content"
- id = Column(BigInteger, primary_key=True, autoincrement=True, comment="主键id")
- keyword_id = Column(BigInteger, nullable=False, comment="关键词id")
- content_id = Column(BigInteger, nullable=False, comment="内容id")
- create_time = Column(TIMESTAMP, nullable=False, server_default="CURRENT_TIMESTAMP", comment="创建时间")
|