Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-17 02:18:30 +00:00
co-authored by renee-png
parent 9b7098224b
commit 81033bf91d
@@ -0,0 +1,26 @@
INSERT INTO public.document_templates (name, description, kind, font_family, font_size_pt, fields, body)
VALUES (
'Correspondence',
'Firm letterhead correspondence with optional Re: and certified mail / FedEx tracking lines.',
'correspondence',
'Times New Roman',
12,
'[
{"key":"recipient_name","label":"Recipient name","type":"text"},
{"key":"recipient_title","label":"Recipient title","type":"text"},
{"key":"recipient_company","label":"Recipient company","type":"text"},
{"key":"recipient_address1","label":"Recipient address line 1","type":"text"},
{"key":"recipient_address2","label":"Recipient address line 2","type":"text"},
{"key":"recipient_city_state_zip","label":"Recipient city, state, ZIP","type":"text"},
{"key":"certified_mail_no","label":"Certified Mail No. (optional)","type":"text"},
{"key":"fedex_no","label":"FedEx Tracking No. (optional)","type":"text"},
{"key":"re","label":"Re: (optional)","type":"text"},
{"key":"salutation","label":"Salutation","type":"text"},
{"key":"body","label":"Letter body","type":"textarea"},
{"key":"closing","label":"Closing","type":"text"},
{"key":"sender_name","label":"Sender name","type":"text"},
{"key":"sender_title","label":"Sender title","type":"text"}
]'::jsonb,
E'{{firm_header}}\n\n{{today}}\n\n{{certified_mail_line}}{{fedex_line}}{{recipient_name}}\n{{recipient_title}}\n{{recipient_company}}\n{{recipient_address1}}\n{{recipient_address2}}\n{{recipient_city_state_zip}}\n\n{{re_line}}Dear {{salutation}}:\n\n{{body}}\n\n{{closing}},\n\n\n\n{{sender_name}}\n{{sender_title}}'
);