admin felület különválasztva

This commit is contained in:
Roo
2026-06-24 11:29:45 +00:00
parent 71ef33bb85
commit 80a5d67f79
462 changed files with 87873 additions and 312 deletions

View File

@@ -56,6 +56,17 @@ class CostCategory(Base):
visibility: Mapped[str] = mapped_column(String(20), default="both", server_default="'both'")
min_tier: Mapped[str] = mapped_column(String(20), default="free", server_default="'free'")
accounting_code: Mapped[Optional[str]] = mapped_column(String(50), nullable=True)
# ── P0 3D CAPABILITY MATRIX: required_feature ──
# If set, this category is ONLY visible to organizations whose resolved
# capability matrix has this feature key set to True.
# Example: "can_use_analytics" → only orgs with that capability see this category.
required_feature: Mapped[Optional[str]] = mapped_column(
String(50),
nullable=True,
comment="Feature key required to access this cost category"
)
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), server_default=func.now())
updated_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), onupdate=func.now(), server_default=func.now())