'use strict';

module.exports = function(sequelize, DataTypes) {
  var <%= name %> = sequelize.define('<%= name %>', {
    <% Object.keys(attributes).forEach(function(fieldName, index) { %>
      <%= fieldName %>: DataTypes.<%= attributes[fieldName].toUpperCase() %>
      <%= (Object.keys(attributes).length - 1) > index ? ',' : '' %>
    <% }) %>
  }, {
    <%= underscored ? 'underscored: true,' : '' %>
    paranoid: true,
    classMethods: {
      associate: function(models) {
        // associations can be defined here
      }
    }
  });

  return <%= name %>;
};

@@ -1,19 +1,4 @@
-'use strict';%0A%0A
 modu
@@ -10,24 +10,16 @@
 ports = 
-function
 (sequeli
@@ -36,16 +36,21 @@
 pes)
+ =%3E
  %7B%0A  
-var
+const
  %3C%25=
@@ -443,24 +443,16 @@
 te: 
-function
 (models)
  %7B%0A 
@@ -447,16 +447,19 @@
 (models)
+ =%3E
  %7B%0A     

make model ES6 friendly