The definitive schema that it will be used is represented in the next link:
In the definition of the schema, some decision were taken to adapt it into the proper context of this library.
user
table won't exist as part of the database schema of the library. Will get the user.id
as a foreign_key from
the existing application database.user.id
exists in the rbac_super_admin
table, further checks won't be needed.rbac_role_assigments
table will relate a user, with a role in a context.rbac_context_level
table describes the different levels where resources will exist in an application, it's totally
attached to the application domain and will be pre defined.rbac_context
table will define each and every instance of the resources present in all the rbac_context_level
s.
Level hierarchy will be defined by the parent_id
parameter.rbac_role_permission
table will relate permits with roles.rbac_permission
table relates permissions with context levels. A permission will make sense in a certain context_level
and this relation will be defined in this table.user
table will have to exist in the application.rbac_context_level
table.rbac_context
table with the resource_id
reference.Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close