Skip to content

ObservationRoleGrant

ObservationRoleGrant Schema

Description: A grant of an observation role to a user or group.

Role name → permission set is defined in
:data:`skynet_db.auth.role_permissions.OBSERVATION_ROLE_PERMISSIONS`.
Exactly one of ``user_id`` / ``group_id`` is set per row.

Properties

Name Type Description
id Integer No description
observation_id Integer No description
role_name Enum(owner, collaborator, editor, viewer, sponsor) No description
user_id Integer (Optional) No description
group_id Integer (Optional) No description
grantor_id Integer (Optional) No description
granted_on DateTime No description

Relationships

Relationship Name Type
observation Observation
user User
group Group
grantor Entity