From 4814e7899ce95ad4152bc973e1aa78f088f69efd Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Mon, 25 Jul 2022 17:15:01 +0200 Subject: [PATCH] better layout for RBAC entity diagram --- sql/rbac.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/sql/rbac.md b/sql/rbac.md index 4e4c1c5e..40d79fa5 100644 --- a/sql/rbac.md +++ b/sql/rbac.md @@ -30,18 +30,17 @@ package RBAC { ' forward declarations entity RbacUser - entity RbacObject together { entity RbacRole entity RbacPermission - enum RbacOperation + RbacUser -[hidden]> RbacRole RbacRole -[hidden]> RbacUser } - + together { entity RbacGrant enum RbacReferenceType @@ -54,8 +53,8 @@ package RBAC { descendantUuid: uuid(RbackReference) auto } - RbacGrant o-> RbacReference - RbacGrant o-> RbacReference + RbacGrant o-u-> RbacReference + RbacGrant o-u-> RbacReference enum RbacReferenceType { RbacUser @@ -85,6 +84,11 @@ package RBAC { name : varchar } RbacRole o-- RbacReference + + together { + enum RbacOperation + entity RbacObject + } entity RbacPermission { *uuid : uuid(RbacReference)