feat: cards, attributes and modules

This commit is contained in:
2025-02-19 14:46:31 +04:00
parent a509a3a586
commit 1af78ce08a
61 changed files with 3212 additions and 2795 deletions

View File

@@ -9,7 +9,7 @@ from models.work_shifts import WorkShift
if TYPE_CHECKING:
from models.payroll import PayRate, PaymentRecord
from models import Deal, DealEmployees
from models import Card, CardEmployees
role_permissions = Table(
'role_permissions',
@@ -115,7 +115,7 @@ class User(BaseModel):
foreign_keys="WorkShift.user_id"
)
managed_deals: Mapped[list["Deal"]] = relationship(
managed_cards: Mapped[list["Card"]] = relationship(
back_populates="manager",
uselist=True,
)
@@ -127,7 +127,7 @@ class User(BaseModel):
cascade="all, delete-orphan"
)
deals: Mapped[list['DealEmployees']] = relationship(
cards: Mapped[list['CardEmployees']] = relationship(
back_populates='user',
lazy='selectin'
)