Role

class pyniryo_nate.models.auth.Role(id: int, name: str)[source]

Bases: object

Represents a user role in the system.

Parameters:
  • id (int) – The unique identifier of the role.

  • name (str) – The name of the role.

Attributes

Methods

id: int
name: str
classmethod from_transport_model(model: Role) → Role[source]
Parameters:

model (Role)

Return type:

Role

to_transport_model() → Role[source]
Return type:

Role