Last active
December 17, 2019 05:28
-
-
Save vitorhidalgo/6de07b34a9039f11132363668f1a5bfa to your computer and use it in GitHub Desktop.
app/model/user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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