The definitive schema that it will be used is represented in the next link:
In the definition of the schema, some decisions were made to adapt it to the proper context of this library.
user
table won't exist as part of the database schema of the library. The user_id
column in rbac_role_assignment
and rbac_super_admin
tables will store the values of the primary key of the existing application database "user table". As the name of the table is unknown to the library, the user_id
column won't be defined as a foreign key.rbac_super_admin
table, further checks won't be performed and the permission will be considered as granted
.rbac_role_assignment
table will relate a user, with a role in a context.rbac_context_type
table describes the different types of resources that will exist in an application. The values in that table are totally attached to the application domain and will be pre-defined by the application itself, not the library.rbac_context
table will store each and every instance of the resources present in the application, for each type of rbac_context_type
s. Hierarchical relationships between resources will be defined by the parent_id
parameter.rbac_role_permission
table will store the list of permissions granted or denied to a role.rbac_permission
table relates permissions with context types. A permission will only make sense for a certain rabc_context_type
and this relation will be defined in this table.user
table will have to exist in the application.rbac_context_type
table.rbac_context
entry will need to be inserted, updated or deleted.Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close