Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
user.model.js Authentication JWT Node.js
module.exports = (sequelize, Sequelize) => {
const User = sequelize.define("users", {
username: {
type: Sequelize.STRING
},
email: {
type: Sequelize.STRING
},
password: {
type: Sequelize.STRING
}
});
return User;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment