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 -11
View File
@@ -1,14 +1,7 @@
from datetime import datetime
from typing import TYPE_CHECKING, List, Optional
from sqlalchemy import (
DateTime,
ForeignKey,
Integer,
String,
Text,
func,
)
from sqlalchemy import DateTime, ForeignKey, Integer, String, Text, func
from sqlalchemy.orm import Mapped, mapped_column, relationship
from app.database.session import Base
@@ -45,7 +38,11 @@ class Song(Base):
__tablename__ = "song"
__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(
@@ -75,7 +72,6 @@ class Song(Base):
task_id: Mapped[str] = mapped_column(
String(36),
nullable=False,
unique=True,
comment="노래 생성 작업 고유 식별자 (UUID)",
)
@@ -141,4 +137,3 @@ class Song(Base):
f"status='{self.status}'"
f")>"
)