Core Concepts Explained

To effectively design and build applications on Struktural, business analysts and developers must share a common vocabulary. The following are the foundational building blocks of the platform.

1. Tenants (Multi-Tenancy)

A Tenant represents an isolated instance of an application. In a B2B SaaS context, each of your corporate customers would be a Tenant.

2. Entities

An Entity is the fundamental data structure in Struktural. It represents a business object (e.g., Invoice, Employee, Vehicle).

Persistent Entities

These represent physical tables in the underlying SQL database. When you define a Persistent Entity, Struktural automatically manages the primary keys, foreign keys, indexes, and constraints. They are subject to the full ACID (Atomicity, Consistency, Isolation, Durability) guarantees of the database.

Virtual Entities

Virtual Entities are data structures that exist only in memory; they do not create tables in the database.

Metadata Fields (EAV)

Certain business domains require dynamic data structures (e.g., products with varying specifications like "Screen Size" or "Horsepower"). Struktural supports Metadata fields, which implement an Entity-Attribute-Value (EAV) pattern under the hood. This allows end-users to define custom attributes at runtime without requiring a developer to alter the database schema.

3. Workflows (Asynchronous Orchestration)

A Workflow represents a background business process. Unlike synchronous actions that happen immediately while the user waits, workflows are designed for long-running, multi-step orchestration.

4. Custom Actions

A Custom Action represents a discrete, synchronous operation triggered directly by a user interacting with the UI.