Class: Securial::RoleAssignment

Inherits:
ApplicationRecord show all
Defined in:
app/models/securial/role_assignment.rb

Overview

RoleAssignment

This class represents the association between a user and a role in the Securial system.

It is used to manage which roles are assigned to which users, allowing for flexible permission management within the application.

Attributes

  • ‘user_id`: The ID of the user to whom the role is assigned

  • ‘role_id`: The ID of the role being assigned to the user

## Associations

  • Belongs to a user, linking the assignment to a specific user

  • Belongs to a role, linking the assignment to a specific role

Method Summary

Methods inherited from ApplicationRecord

#generate_uuid_v7