CREATE OR REPLACE FUNCTION public.fn_admin_list_email_templates()
 RETURNS TABLE(template_key character varying, language character varying, subject character varying, body_html text, body_text text, active boolean, updated_at timestamp with time zone)
 LANGUAGE sql
AS $function$
    SELECT template_key, language, subject, body_html, body_text, active, updated_at
    FROM public.email_templates
    ORDER BY template_key, language;
$function$
;
