better layout for RBAC entity diagram
This commit is contained in:
parent
16513f0786
commit
4814e7899c
14
sql/rbac.md
14
sql/rbac.md
@ -30,18 +30,17 @@ package RBAC {
|
|||||||
|
|
||||||
' forward declarations
|
' forward declarations
|
||||||
entity RbacUser
|
entity RbacUser
|
||||||
entity RbacObject
|
|
||||||
|
|
||||||
together {
|
together {
|
||||||
|
|
||||||
entity RbacRole
|
entity RbacRole
|
||||||
entity RbacPermission
|
entity RbacPermission
|
||||||
enum RbacOperation
|
|
||||||
|
|
||||||
RbacUser -[hidden]> RbacRole
|
RbacUser -[hidden]> RbacRole
|
||||||
RbacRole -[hidden]> RbacUser
|
RbacRole -[hidden]> RbacUser
|
||||||
}
|
}
|
||||||
|
|
||||||
together {
|
together {
|
||||||
entity RbacGrant
|
entity RbacGrant
|
||||||
enum RbacReferenceType
|
enum RbacReferenceType
|
||||||
@ -54,8 +53,8 @@ package RBAC {
|
|||||||
descendantUuid: uuid(RbackReference)
|
descendantUuid: uuid(RbackReference)
|
||||||
auto
|
auto
|
||||||
}
|
}
|
||||||
RbacGrant o-> RbacReference
|
RbacGrant o-u-> RbacReference
|
||||||
RbacGrant o-> RbacReference
|
RbacGrant o-u-> RbacReference
|
||||||
|
|
||||||
enum RbacReferenceType {
|
enum RbacReferenceType {
|
||||||
RbacUser
|
RbacUser
|
||||||
@ -85,6 +84,11 @@ package RBAC {
|
|||||||
name : varchar
|
name : varchar
|
||||||
}
|
}
|
||||||
RbacRole o-- RbacReference
|
RbacRole o-- RbacReference
|
||||||
|
|
||||||
|
together {
|
||||||
|
enum RbacOperation
|
||||||
|
entity RbacObject
|
||||||
|
}
|
||||||
|
|
||||||
entity RbacPermission {
|
entity RbacPermission {
|
||||||
*uuid : uuid(RbacReference)
|
*uuid : uuid(RbacReference)
|
||||||
|
Loading…
Reference in New Issue
Block a user