Created
November 12, 2020 07:43
-
-
Save blogcacanid/db80753a7e708569ad14dfcab69229c6 to your computer and use it in GitHub Desktop.
user.model.js Authentication JWT Node.js
This file contains hidden or 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
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