Chore(Feat): added principal,depart RBAC

This commit is contained in:
2026-02-27 10:03:05 +05:45
parent c623824738
commit 92fd57447d
9 changed files with 1841 additions and 1 deletions
+6
View File
@@ -34,6 +34,12 @@ class Organization(BaseModel):
cascade="all, delete-orphan",
foreign_keys="OrganizationSecurityPolicy.organization_id",
)
departments = db.relationship(
"Department", back_populates="organization", cascade="all, delete-orphan"
)
principals = db.relationship(
"Principal", back_populates="organization", cascade="all, delete-orphan"
)
def __repr__(self):
"""String representation of Organization."""