mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-06 20:42:52 +08:00
14 lines
472 B
Python
14 lines
472 B
Python
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()) |