admin felület különválasztva
This commit is contained in:
@@ -151,6 +151,17 @@ class Organization(Base):
|
||||
index=True
|
||||
)
|
||||
|
||||
# ── P0 3D CAPABILITY MATRIX: custom_features JSONB ──
|
||||
# Organization-specific feature overrides on top of the subscription tier defaults.
|
||||
# These values MERGE with (and override) tier.feature_capabilities at runtime.
|
||||
# Example: {"can_export_data": True, "can_use_analytics": False}
|
||||
custom_features: Mapped[dict] = mapped_column(
|
||||
JSONB,
|
||||
nullable=False,
|
||||
default=dict,
|
||||
server_default=text("'{}'::jsonb")
|
||||
)
|
||||
|
||||
notification_settings: Mapped[Any] = mapped_column(JSON, server_default=text("'{\"notify_owner\": true, \"alert_days_before\": [30, 15, 7, 1]}'::jsonb"))
|
||||
external_integration_config: Mapped[Any] = mapped_column(JSON, server_default=text("'{}'::jsonb"))
|
||||
|
||||
@@ -208,6 +219,14 @@ class Organization(Base):
|
||||
|
||||
# Kapcsolat az örök személy rekordhoz
|
||||
legal_owner: Mapped[Optional["Person"]] = relationship("Person", back_populates="owned_business_entities")
|
||||
|
||||
# ── P0 3D CAPABILITY MATRIX: SubscriptionTier relationship ──
|
||||
subscription_tier: Mapped[Optional["SubscriptionTier"]] = relationship(
|
||||
"SubscriptionTier",
|
||||
foreign_keys=[subscription_tier_id],
|
||||
backref="organizations",
|
||||
lazy="selectin"
|
||||
)
|
||||
|
||||
|
||||
class OrganizationFinancials(Base):
|
||||
|
||||
Reference in New Issue
Block a user