r.entity(...)
Overview
Section titled “Overview”r.entity(name, definition) — declares an event-sourced entity: field
schema plus search/sort and PII metadata as one declarative object. The
framework derives the aggregate table, CRUD events, and the read-side
projection from it at boot. Fully static — the Designer renders it as a
form, the AI patcher edits it as pure data.
From packages/framework/src/engine/feature-ast/patterns.ts -> EntityPattern