Semantius Logo
DocsData Catalog

Data Catalog

On this page

The data catalog is the core of Semantius. It describes your business as data, covering the modules that group an application, the entities and fields that become database tables with a REST API, the rules that govern them (permissions, business logic, and a RACI matrix for state changes), and the audit logs 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 runs it for you, Semantius Open Source runs it on your own machine or server, and the pg_semantius 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 groups the entities, permissions and roles of one application, such as a CRM or a helpdesk. Its version counts the changes to its model, and deleting it removes its entities with their records, its permissions and its roles.

Entities and Fields

An entity 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 is a column of that table, and its format decides what the database accepts. Relationships link records to each other, and subtypes and extensions share records with a base entity.

Conventions

The conventions 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 decide who may read and write each entity. Each entity names a view permission and an edit permission, roles bundle permissions for users, and the hierarchy lets one permission include others. Row-level security checks them on every request.

Users and Agents

Users and agents are the records of users: people who sign in through an identity provider, and agents, service principals that work through API keys. Both hold roles and permissions the same way.

Business Logic

Business logic is stored on entities and fields as JsonLogic 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 add the variables and operators Semantius provides, and rollup fields aggregate the records of a child entity.

Audit Logs

The audit logs 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 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:

TableDescription
modulesGroups of related tables and permissions
entitiesCatalog of tables in Semantius
fieldsCatalog of the fields that make up a table
permissionsSystem permissions that can be assigned to roles and organized via hierarchy
rolesGroups of permissions that can be assigned to users
user_rolesMany-to-many mapping between users and roles
role_permissionsMany-to-many mapping between roles and permissions
user_permissionsMany-to-many mapping between users and permissions for direct per-user permission grants
permission_hierarchyDefines permission inclusion (including permission implies included permissions)
usersUsers and agents
processesRACI process catalog
raci_assignmentsRACI matrix rows assigning roles to processes
process_gatesGovernance registry: maps entity transitions to processes
raci_eventsNotify/consult audit log for RACI-governed record transitions
audit_record_logsDML audit trail for entity table records
audit_ddl_logsDDL audit trail for schema change events