"use strict"; module.exports = function(sequelize, DataTypes) { //The id field is auto added and made primary key. return sequelize.define('Measure', { id: { type: DataTypes.INTEGER, primaryKey: true, allowNull: false, autoIncrement: true }, name: { type: DataTypes.STRING, allowNull: false }, image: { type: DataTypes.STRING, allowNull: true }, postfix: { type: DataTypes.STRING, allowNull: false } }, { freezeTableName: true, // Model tableName will be the same as the model paranoid: true }); };