fix: removed celery tasks tables

This commit is contained in:
2025-11-04 15:05:48 +04:00
parent ee18f16250
commit 7defcbdbd4
3 changed files with 1 additions and 76 deletions

View File

@ -1,22 +1,6 @@
from typing import TYPE_CHECKING
from sqlalchemy.orm import Mapped, relationship
from models.base import BaseModel
from models.mixins import IdMixin, SoftDeleteMixin
if TYPE_CHECKING:
from models import CeleryTask, CeleryActiveTask
class User(BaseModel, IdMixin, SoftDeleteMixin):
__tablename__ = "users"
celery_tasks: Mapped["CeleryTask"] = relationship(
back_populates="user",
lazy="noload",
)
celery_active_tasks: Mapped["CeleryActiveTask"] = relationship(
back_populates="user",
lazy="noload",
)