UserInRole


Description

User role assignments linking users to their system roles for permission-based access control. This table implements role-based security by associating users with predefined roles that determine their system capabilities and data access permissions.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
Id int identity 4 null

Primary key - Unique identifier for each user-role assignment

UserId int 4 null

User reference - Links to AccessUser table for the user receiving role permissions

RoleId uniqueidentifier 16 null

Role reference - Links to Roles table for the assigned role and its permissions

Indexes

Constraint Name Type Sort Column(s)
PK_UserInRole Primary key Asc Id
IX_UserId Performance Asc UserId
IX_UserId_RoleId Performance Asc/Asc UserId + RoleId

Relationships