sonamu-entity
Installation
SKILL.md
Sonamu Entity
entity.json is the source of truth: props, relations, subsets, indexes, and enums.
Syncing after an entity.json change regenerates the Zod schemas and TypeScript types in
sonamu.generated.ts and sonamu.generated.sso.ts, writes {entity}.types.ts once for a new
entity, and refreshes the i18n labels in sd.generated.ts. Nothing else follows from the entity file
alone:
| Output | Produced by |
|---|---|
| Migration file, then the table | sonamu migrate generate, then migrate run --execute --confirm |
model.ts, model test, admin view_list / view_form |
sonamu scaffold <type> {EntityId} |
services.generated.ts in each sync target, plus queries.generated.ts and sonamu.generated.http in the API |
sonamu sync after a model change, not an entity change |