From f5130b73d7de6e85976b7c00893e482f3648f965 Mon Sep 17 00:00:00 2001 From: Dohyun Lim Date: Thu, 15 Jan 2026 13:55:43 +0900 Subject: [PATCH] added userproject table --- app/home/models.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/home/models.py b/app/home/models.py index ad4135b..026523d 100644 --- a/app/home/models.py +++ b/app/home/models.py @@ -15,6 +15,12 @@ from sqlalchemy.orm import Mapped, mapped_column, relationship from app.database.session import Base +if TYPE_CHECKING: + from app.lyric.models import Lyric + from app.song.models import Song + from app.user.models import User + from app.video.models import Video + # ============================================================================= # User-Project M:N 관계 중계 테이블 # ============================================================================= @@ -132,13 +138,6 @@ class UserProject(Base): ) -if TYPE_CHECKING: - from app.lyric.models import Lyric - from app.song.models import Song - from app.user.models import User - from app.video.models import Video - - class Project(Base): """ 프로젝트 테이블 (사용자 입력 이력)