add email notif template to schema

- update migration
This commit is contained in:
Abhinav Raut
2026-01-01 14:43:40 +05:30
parent 1aa2d91432
commit 28fa0bad23
2 changed files with 25 additions and 5 deletions
+20
View File
@@ -808,3 +808,23 @@ VALUES (
'Urgent: SLA Breach for Conversation {{ .Conversation.ReferenceNumber }} for {{ .SLA.Metric }}',
true
);
INSERT INTO templates
("type", body, is_default, "name", subject, is_builtin)
VALUES (
'email_notification'::template_type,
'<p>{{ .Author.FullName }} mentioned you in a private note on conversation #{{ .Conversation.ReferenceNumber }}.</p>
<p>
<a href="{{ RootURL }}/inboxes/mentioned/conversation/{{ .Conversation.UUID }}?scrollTo={{ .Message.UUID }}">View Conversation</a>
</p>
<p>
Best regards,<br>
Libredesk
</p>',
false,
'Mentioned in conversation',
'{{ .Author.FullName }} mentioned you in conversation #{{ .Conversation.ReferenceNumber }}',
true
);