Added code type to email template schema