from sqlalchemy import create_engine, Column, Integer, String, Boolean from sqlalchemy.ext.declarative import declarative_base # 如果没有创建 Base,请取消注释下一行 Base = declarative_base() class Video(Base): __tablename__ = 'Videos' id = Column(Integer, primary_key=True, autoincrement=True) videoId = Column(String(255), nullable=False) channelId = Column(String(255), nullable=False) videoTitle = Column(String(255), nullable=False) videoLen = Column(Integer, nullable=False) videoType = Column(String(255), nullable=False) videoPublishTime = Column(String(255), nullable=False) videoLanguage = Column(String(255), nullable=False) isDownload = Column(Integer, nullable=False)