> This page location: Docs > Data Catalog
> Full index for agents: https://www.semantius.com/llms.txt

# Data Catalog

> The core of Semantius: modules, entities and fields, permissions and roles, users and agents, business logic, audit logs and RACI, kept as data and enforced inside the database.

- **URL**: https://www.semantius.com/docs/data-catalog

---

The data catalog is the core of Semantius. It describes your business as data, covering the [modules](https://www.semantius.com/docs/modules.md) that group an application, the [entities and fields](https://www.semantius.com/docs/entities-and-fields.md) that become database tables with a REST API, the rules that govern them ([permissions](https://www.semantius.com/docs/permissions-and-roles.md), [business logic](https://www.semantius.com/docs/business-logic.md), and a [RACI](https://www.semantius.com/docs/raci.md) matrix for state changes), and the [audit logs](https://www.semantius.com/docs/audit-logs.md) that record every change. Any change to an entity or field is applied to its underlying table in the same transaction, so the model and the database cannot drift apart.

The data catalog is part of every edition of Semantius. [Semantius Cloud](https://app.semantius.com) runs it for you, [Semantius Open Source](https://www.semantius.com/docs/self-hosted.md) runs it on your own machine or server, and the [pg\_semantius](https://www.semantius.com/docs/pg-semantius.md) extension adds it to an existing PostgreSQL database. In all three, rules are enforced inside the database, ensuring that an agent, a script, and the web app all pass through the same checks.

## Modules

A [module](https://www.semantius.com/docs/modules.md) groups the entities, permissions and roles of one application, such as a CRM or a helpdesk. Its [version](https://www.semantius.com/docs/modules.md#version) counts the changes to its model, and [deleting it](https://www.semantius.com/docs/modules.md#deleting-a-module) removes its entities with their records, its permissions and its roles.

## Entities and Fields

An [entity](https://www.semantius.com/docs/entities-and-fields.md) is a kind of record, such as a ticket or an order. Saving one creates its table, its API endpoint and its access policies. Each [field](https://www.semantius.com/docs/entities-and-fields/fields.md) is a column of that table, and its [format](https://www.semantius.com/docs/entities-and-fields/formats.md) decides what the database accepts. [Relationships](https://www.semantius.com/docs/entities-and-fields/relationships.md) link records to each other, and [subtypes and extensions](https://www.semantius.com/docs/entities-and-fields/relationships.md#subtypes-and-extensions) share records with a base entity.

## Conventions

The [conventions](https://www.semantius.com/docs/conventions.md) are optional naming and modeling conventions: plural snake\_case table names, record names people already use, a `workflow_state` for every lifecycle, `<module_slug>:<action>` permissions. They keep a catalog consistent, so that people and agents can read one module after another.

## Permissions and Roles

[Permissions and roles](https://www.semantius.com/docs/permissions-and-roles.md) decide who may read and write each entity. Each entity names a view permission and an edit permission, [roles](https://www.semantius.com/docs/permissions-and-roles/roles.md) bundle permissions for users, and the [hierarchy](https://www.semantius.com/docs/permissions-and-roles/permissions.md#the-hierarchy) lets one permission include others. Row-level security checks them on every request.

## Users and Agents

[Users and agents](https://www.semantius.com/docs/users-and-agents.md) are the records of `users`: people who sign in through an identity provider, and agents, service principals that work through [API keys](https://www.semantius.com/docs/users-and-agents/api-keys.md). Both hold roles and permissions the same way.

## Business Logic

[Business logic](https://www.semantius.com/docs/business-logic.md) is stored on entities and fields as [JsonLogic](https://www.semantius.com/docs/business-logic/jsonlogic.md) rules: computed fields, validation rules and row-level select rules, which the database enforces on every write and read, and field input modes, which forms apply as you edit. The [JsonLogic extensions](https://www.semantius.com/docs/business-logic/extensions.md) add the variables and operators Semantius provides, and [rollup fields](https://www.semantius.com/docs/business-logic/rollups.md) aggregate the records of a child entity.

## Audit Logs

The [audit logs](https://www.semantius.com/docs/audit-logs.md) record every change to the records of audited entities, and every schema change, in two append-only logs that only administrators can read.

## RACI

[RACI](https://www.semantius.com/docs/raci.md) gives roles a letter for each process: Responsible, Accountable, Consulted or Informed. A process gate ties a process to a state of an entity’s records, and a record that enters the state notifies or consults the roles the matrix names.

## Tables

The data catalog is kept in these tables of the [administration module](https://www.semantius.com/docs/modules.md#the-administration-module):

| Table                                                                                                       | Description                                                                              |
| ----------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| [`modules`](https://www.semantius.com/docs/modules.md#the-module-record)                                    | Groups of related tables and permissions                                                 |
| [`entities`](https://www.semantius.com/docs/entities-and-fields/entities.md#the-entity-record)              | Catalog of tables in Semantius                                                           |
| [`fields`](https://www.semantius.com/docs/entities-and-fields/fields.md#the-field-record)                   | Catalog of the fields that make up a table                                               |
| [`permissions`](https://www.semantius.com/docs/permissions-and-roles/permissions.md#the-permission-record)  | System permissions that can be assigned to roles and organized via hierarchy             |
| [`roles`](https://www.semantius.com/docs/permissions-and-roles/roles.md#the-role-record)                    | Groups of permissions that can be assigned to users                                      |
| [`user_roles`](https://www.semantius.com/docs/permissions-and-roles/roles.md#grants-and-assignments)        | Many-to-many mapping between users and roles                                             |
| [`role_permissions`](https://www.semantius.com/docs/permissions-and-roles/roles.md#grants-and-assignments)  | Many-to-many mapping between roles and permissions                                       |
| [`user_permissions`](https://www.semantius.com/docs/permissions-and-roles/roles.md#grants-and-assignments)  | Many-to-many mapping between users and permissions for direct per-user permission grants |
| [`permission_hierarchy`](https://www.semantius.com/docs/permissions-and-roles/permissions.md#the-hierarchy) | Defines permission inclusion (including permission implies included permissions)         |
| [`users`](https://www.semantius.com/docs/users-and-agents/users.md#the-user-record)                         | Users and agents                                                                         |
| [`processes`](https://www.semantius.com/docs/raci.md#processes)                                             | RACI process catalog                                                                     |
| [`raci_assignments`](https://www.semantius.com/docs/raci.md#raci-assignments)                               | RACI matrix rows assigning roles to processes                                            |
| [`process_gates`](https://www.semantius.com/docs/raci.md#process-gates)                                     | Governance registry: maps entity transitions to processes                                |
| [`raci_events`](https://www.semantius.com/docs/raci.md#raci-events)                                         | Notify/consult audit log for RACI-governed record transitions                            |
| [`audit_record_logs`](https://www.semantius.com/docs/audit-logs.md#the-record-log)                          | DML audit trail for entity table records                                                 |
| [`audit_ddl_logs`](https://www.semantius.com/docs/audit-logs.md#the-schema-log)                             | DDL audit trail for schema change events                                                 |

---

## Related

- [Next: Modules](https://www.semantius.com/docs/modules.md)
- [Full index for agents](https://www.semantius.com/llms.txt)
