TT-007.2: establish DB-backed module authorization

This commit is contained in:
2026-08-10 18:06:45 +03:00
parent 98fd823513
commit 27cc0b5651
17 changed files with 3601 additions and 195 deletions
@@ -16,6 +16,7 @@ class Role(Base, TimestampMixin):
is_system = Column(Boolean, default=False)
user_roles = relationship("UserRole", back_populates="role", cascade="all, delete-orphan")
role_permissions = relationship("RolePermission", back_populates="role", cascade="all, delete-orphan")
def __repr__(self) -> str:
return f"<Role(id={self.id}, name='{self.name}')>"