Data Catalog
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:
| Table | Description |
|---|---|
modules | Groups of related tables and permissions |
entities | Catalog of tables in Semantius |
fields | Catalog of the fields that make up a table |
permissions | System permissions that can be assigned to roles and organized via hierarchy |
roles | Groups of permissions that can be assigned to users |
user_roles | Many-to-many mapping between users and roles |
role_permissions | Many-to-many mapping between roles and permissions |
user_permissions | Many-to-many mapping between users and permissions for direct per-user permission grants |
permission_hierarchy | Defines permission inclusion (including permission implies included permissions) |
users | Users and agents |
processes | RACI process catalog |
raci_assignments | RACI matrix rows assigning roles to processes |
process_gates | Governance registry: maps entity transitions to processes |
raci_events | Notify/consult audit log for RACI-governed record transitions |
audit_record_logs | DML audit trail for entity table records |
audit_ddl_logs | DDL audit trail for schema change events |