Top-Level Structure
domainModelTypes is defined as a map where each key is the entity type name and the value is the type definition object:
name automatically. When the data model is loaded, Powersheet copies each map key into the corresponding type object so the name is consistently available regardless of how the type is accessed.
Entity Type Diagram
Entity Type Configuration Properties
name
The entity type name is the primary identifier used throughout the data model. It is set automatically from the YAML map key and does not need to be specified separately.
relationships[].fromandrelationships[].toto reference participating types- Sheet source
query.fromto identify the root entity type - Expansion paths to navigate between related entities
- Metadata system queries for type-based filtering
pluralName
An optional plural form of the entity type name. When omitted, Powersheet auto-generates it using standard English pluralization rules.
The
pluralName property has limited support in current versions. Auto-generated pluralization covers most standard English forms.polarionType
Maps the data model entity to one or more Polarion work item types. This property is critical for Powersheet’s integration with Polarion — it determines which work items this entity type can represent.
Single type mapping:
polarionProto
Specifies the Polarion prototype (object type) this entity maps to. Most entity types use the default work item prototype and do not need to set this property.
properties
Defines which fields are available on this entity type. Properties are declared as a map where the key is the property name.
- Polarion built-in fields — standard work item fields like
title,description,severity - Custom fields — Polarion custom fields identified by
customFieldName - Virtual properties — properties not backed by any Polarion field, commonly used as targets for server rendering or computed display columns
serverName, customFieldName, type, storage, scalar, and navigability, see Properties.
Built-in Properties
All entity types automatically include these properties without explicit declaration:Permission Flags on Properties
Individual properties support field-level access control:readable: false hides the property entirely from the metadata system. Setting updatable: false makes the property read-only in the sheet while still allowing it to be displayed. See Permissions for additional access control options.
constraints
Defines data scoping rules at three lifecycle points. Constraints control which work items are loaded, which can be selected in pickers, and how new entities are created. See Constraints for full reference.
Built-in Entity Types
Powersheet provides theDocument entity type without explicit declaration. All other entity types, including Chapter, must be declared in the domainModelTypes map.
The
Document entity type is not a work item. It provides navigation access to the containing document’s properties for filtering and constraints. It uses a different Polarion prototype than standard entity types.Declaring Chapter
To useChapter in your data model, declare it explicitly:
How Entity Types Connect to Sources and Columns
Entity types defined indomainModelTypes are referenced throughout the sheet configuration. The connection flows through three layers:
- Data model — defines entity types and their relationships
- Sheet sources — queries entity types and expands relationships
- Sheet columns — binds to entity properties using dot-notation paths
Cardinality Summary
See Relationships for relationship configuration and Binding Syntax for column path resolution.
Complete YAML Example
A comprehensive data model using the standard RTM entity set:Programmatic Access
Powersheet provides several methods for accessing entity type definitions at runtime:Programmatic access is primarily used in server-side extensions and custom Velocity templates. Standard sheet configuration uses the YAML declaration approach.
Related Pages
- Relationships — Relationship definitions between entity types
- Properties — Property configuration details including
serverName,customFieldName, andtype - Constraints — Load, create, and pick constraint reference
- Cardinality — How relationship cardinality affects sources and columns
- Polarion Type Mapping — How
polarionTyperesolves to work item types - Permissions — Property-level access control
- Link Roles — Polarion link role configuration for relationships
- Navigation Directions — Forward and reverse navigation properties