admin felület különválasztva
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user