DROP TABLE mail_template;

CREATE TABLE mail_template (
   template_name varchar(40) NOT NULL,
   template_value text NOT NULL,
   CONSTRAINT mail_template_pk PRIMARY KEY (template_name)
); 


INSERT INTO mail_template (template_name, template_value) VALUES('password_reset_html',
'<#ftl strip_whitespace = true>
<!DOCTYPE html>
<html>
    <body>
        Dear ${account.firstname},<br>
        <br>
        you requested to reset your password at ${parameter.url}. Please open the following URL to proceed.<br>
        <a href="${parameter.resetUrl}">${parameter.resetUrl}</a><br>
        <br>
        </body>
    </html>');
