from sqlalchemy import Column, Integer, String, Boolean, create_engine from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class DownloadInfo(Base): __tablename__ = 'Download_info' id = Column(Integer, primary_key=True, autoincrement=True) videoId = Column(String(255), nullable=False) downloadType = Column(Integer, nullable=False) tryTime = Column(Integer, nullable=False) isFinished = Column(Integer, nullable=False)