From 81033bf91d8933f992876eda49ea79a4825d6224 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 02:18:30 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- ...7_6a1deb9c-e973-4d19-a627-676375c049ca.sql | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 supabase/migrations/20260417021827_6a1deb9c-e973-4d19-a627-676375c049ca.sql diff --git a/supabase/migrations/20260417021827_6a1deb9c-e973-4d19-a627-676375c049ca.sql b/supabase/migrations/20260417021827_6a1deb9c-e973-4d19-a627-676375c049ca.sql new file mode 100644 index 0000000..e022faf --- /dev/null +++ b/supabase/migrations/20260417021827_6a1deb9c-e973-4d19-a627-676375c049ca.sql @@ -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}}' +);