feat: blank taskiq setup

This commit is contained in:
2025-10-30 17:06:30 +04:00
parent 307e6573e3
commit 36b3e056dc
10 changed files with 298 additions and 0 deletions

22
models/auth.py Normal file
View File

@ -0,0 +1,22 @@
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",
)