custom-fields
Tenant- and system-scoped custom field definitions with generic value storage on any host entity. Registers the field-definition entity (event-sourced CRUD via define-tenant-field, define-system-field, update-tenant-field, delete-tenant-field, delete-system-field) and two value write-handlers (set-custom-field, clear-custom-field) that emit custom-fields:event:custom-field-set / custom-fields:event:custom-field-cleared events on the host aggregate’s stream. To attach custom fields to your own entity, call wireCustomFieldsFor(r, entityName, entityTable) in the host feature — this wires the JSONB projection, postQuery flattening hook, and search-payload extension. The host entity must declare a customFieldsField() JSONB column.
Dependencies
Section titled “Dependencies”- Requires: none
- Activation: always on (not toggleable)