Core Concepts

Data Models

Learn about the core entities in Interna and how they relate to each other.

Entity Overview

EntityDescriptionAPI Prefix
UserAn individual account holder/v1/users
OrganizationA company or team grouping/v1/organizations
PermissionAn access control rule/v1/permissions
RoleA named set of permissions/v1/roles

Relationships

Users belong to organizations through memberships. Each membership assigns a role, and each role contains a set of permissions. This hierarchy enables fine-grained access control at every level.

Common Fields

All entities share a standard set of metadata fields:

FieldTypeDescription
idstringUnique identifier with entity prefix (e.g. usr_, org_)
created_atISO 8601Timestamp of creation
updated_atISO 8601Timestamp of last update
metadataobjectArbitrary key-value pairs for custom data