Associates users with roles in the system, managing role-based access control and permission inheritance.

Hierarchy (view full)

Constructors

Properties

ID: any = null

Primary Key

Role: string = null

Name of the role

RoleID: string = null

Foreign key reference to the Roles table

User: string = null

Name of the user

UserID: string = null

Foreign key reference to the Users table

__mj_CreatedAt: Date = null

Timestamp when the user-role association was created

__mj_UpdatedAt: Date = null

Timestamp when the user-role association was last updated

Methods

  • Copies initialization data from a plain object to the class instance. Only copies properties that already exist on the class to prevent creating new fields. Special handling for DefaultValue fields to extract actual values from SQL Server syntax.

    Parameters

    • initData: any

      The initialization data object

    Returns void