Skip to content

Instantly share code, notes, and snippets.

@blogcacanid
Created November 12, 2020 07:43
Show Gist options
  • Save blogcacanid/db80753a7e708569ad14dfcab69229c6 to your computer and use it in GitHub Desktop.
Save blogcacanid/db80753a7e708569ad14dfcab69229c6 to your computer and use it in GitHub Desktop.
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