adds mail template model
renames mail_template to email_template
tests required fields for email template
adds getByTeamId test and fixes the function in the model