You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
479 B

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)