Skip to content

Instantly share code, notes, and snippets.

@vitorhidalgo
Last active December 17, 2019 05:28
Show Gist options
  • Save vitorhidalgo/6de07b34a9039f11132363668f1a5bfa to your computer and use it in GitHub Desktop.
Save vitorhidalgo/6de07b34a9039f11132363668f1a5bfa to your computer and use it in GitHub Desktop.
app/model/user.js
var sequelize = require('Sequelize');
module.exports = function()
{
console.log(Sequelize);
var User = sequelize.define
(
'users',
{
id :
{
type : DataTypes.INTEGER,
primaryKey : true
},
email :
{
type : DataTypes.STRING
},
password :
{
type : DataTypes.STRING
}
}
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment