Add EmailTemplate entity + repository

Featurekamo-shared-library
Shipped
April 18, 2026 at 6:16 AM UTC
Author
Kamo
Commit
1c8cbac

Stores one SYSTEM row per template_key (org_id NULL, is_system TRUE) plus one clone per org per template_key. Soft-reference org_id/category_id. DB- driven timestamps; JSONB for body_blocks and tags. Repository provides org-scoped lookups, atomic usage counter increment, and category-delete cleanup via nullifyCategoryForOrg. Part of SP1.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing