Users and Roles tables - lucienlazar/oracle-menu-permissions GitHub Wiki

This section has three tables:

Users table

The users table stores the users in the application.

Its columns are:

  • user id primary key populated from sequence
  • user name
  • user mail
  • user login

users

Roles table

The roles table stores the roles in the application. A user can have one or more roles. Each role has a set of permissions on menu items.

Its columns are:

  • role id primary key populated from sequence
  • role name

roles

Users Roles table

The roles table stores the roles for each user. A user can have one or more roles.

Its columns are:

  • user id - foreign key to user id in users table
  • role id - foreign key to role id in roles table

The primary key is the combination of user id and role id.

users roles