EmailTemplate
A reusable email template for outbound communications (campaigns, transactional sends).
Content is stored two ways: content (rendered HTML) and blocksJson
(the block-editor structure used to re-render/edit it). globalStyles
holds shared CSS applied across blocks.
Cached for a short window (@cacheControl(maxAge: 3)) — expect brief staleness immediately after emailTemplatesEdit.
EmailTemplateFields
Unique template identifier.
Display name in the template picker and emailTemplates search.
Rendered HTML content of the template.
Block-editor structure (JSON string) used to re-render and edit the template.
Shared CSS applied across the template's blocks.
Lifecycle status (e.g. draft, published). Set via emailTemplatesChangeStatus.
User id that created this template.
When this template was created.
When this template was last modified.