We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42296c2 commit 1c8983cCopy full SHA for 1c8983c
src/assets/models/model.js
@@ -1,7 +1,7 @@
1
'use strict';
2
3
module.exports = (sequelize, DataTypes) => {
4
- var <%= name %> = sequelize.define('<%= name %>', {
+ const <%= name %> = sequelize.define('<%= name %>', {
5
<% attributes.forEach(function(attribute, index) { %>
6
<%= attribute.fieldName %>: DataTypes.<%= attribute.dataFunction ? `${attribute.dataFunction.toUpperCase()}(DataTypes.${attribute.dataType.toUpperCase()})` : attribute.dataType.toUpperCase() %>
7
<%= (Object.keys(attributes).length - 1) > index ? ',' : '' %>
0 commit comments