add crawler and generate

This commit is contained in:
bluebamus committed 2025-12-21 22:49:57 +09:00
1 parent 9e7e8eee4e
commit 369f530ec5
19 files changed
+6426 -488

No files matched your search

+6 -9
View File
@@ -1,13 +1,7 @@
from datetime import datetime
from typing import TYPE_CHECKING, Optional
from sqlalchemy import (
DateTime,
ForeignKey,
Integer,
String,
func,
)
from sqlalchemy import DateTime, ForeignKey, Integer, String, func
from sqlalchemy.orm import Mapped, mapped_column, relationship
from app.database.session import Base
@@ -43,7 +37,11 @@ class Video(Base):
__tablename__ = "video"
__table_args__ = (
{"mysql_engine": "InnoDB", "mysql_charset": "utf8mb4", "mysql_collate": "utf8mb4_unicode_ci"},
{
"mysql_engine": "InnoDB",
"mysql_charset": "utf8mb4",
"mysql_collate": "utf8mb4_unicode_ci",
},
)
id: Mapped[int] = mapped_column(
@@ -81,7 +79,6 @@ class Video(Base):
task_id: Mapped[str] = mapped_column(
String(36),
nullable=False,
unique=True,
index=True,
comment="영상 생성 작업 고유 식별자 (UUID)",
)