admin felület fejlesztése garázs, előfizeztési csomagok
This commit is contained in:
@@ -27,6 +27,7 @@ if TYPE_CHECKING:
|
||||
from app.models.vehicle.asset import Asset
|
||||
from app.models.marketplace.organization import Organization
|
||||
from app.models.system.document import Document
|
||||
from app.models.identity.social import ServiceProvider
|
||||
|
||||
|
||||
# =============================================================================
|
||||
@@ -138,6 +139,10 @@ class AssetCost(Base):
|
||||
vendor_organization_id: Mapped[Optional[int]] = mapped_column(
|
||||
Integer, ForeignKey("fleet.organizations.id"), nullable=True, index=True
|
||||
)
|
||||
# P0 HYBRID VENDOR REFACTOR: Új elsődleges hivatkozás a marketplace.service_providers táblára
|
||||
service_provider_id: Mapped[Optional[int]] = mapped_column(
|
||||
Integer, ForeignKey("marketplace.service_providers.id"), nullable=True, index=True
|
||||
)
|
||||
# Szabadon gépelhető beszállító név (ha nincs a rendszerben)
|
||||
external_vendor_name: Mapped[Optional[str]] = mapped_column(String(200), nullable=True)
|
||||
|
||||
@@ -162,6 +167,11 @@ class AssetCost(Base):
|
||||
"Organization", foreign_keys=[vendor_organization_id]
|
||||
)
|
||||
|
||||
# P0 HYBRID VENDOR REFACTOR: ServiceProvider kapcsolat
|
||||
service_provider: Mapped[Optional["ServiceProvider"]] = relationship(
|
||||
"ServiceProvider", foreign_keys=[service_provider_id]
|
||||
)
|
||||
|
||||
|
||||
# =============================================================================
|
||||
# AssetFinancials (áthelyezve vehicle -> fleet_finance, kibővítve)
|
||||
|
||||
Reference in New Issue
Block a user