mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-07-09 22:41:52 +08:00
feat(NoteForm): 增加文件上传状态反馈
This commit is contained in:
14
backend/app/db/models/video_tasks.py
Normal file
14
backend/app/db/models/video_tasks.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from sqlalchemy import Column, Integer, String, DateTime, func
|
||||
from sqlalchemy.orm import declarative_base
|
||||
|
||||
from app.db.engine import Base
|
||||
|
||||
|
||||
class VideoTask(Base):
|
||||
__tablename__ = "video_tasks"
|
||||
|
||||
id = Column(Integer, primary_key=True, autoincrement=True)
|
||||
video_id = Column(String, nullable=False)
|
||||
platform = Column(String, nullable=False)
|
||||
task_id = Column(String, unique=True, nullable=False)
|
||||
created_at = Column(DateTime, server_default=func.now())
|
||||
Reference in New Issue
Block a user