-
-
Save agustinfece/a5d6f50870058df7ff5e27aa8c25ba9d to your computer and use it in GitHub Desktop.
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
import { Sequelize } from 'sequelize'; | |
import sequelize from '../utils/database.js'; | |
const User = sequelize.define('users', { | |
id: { | |
type: Sequelize.INTEGER, | |
autoIncrement: true, | |
allowNull: false, | |
primaryKey: true, | |
}, | |
email: { | |
type: Sequelize.STRING, | |
allowNull: false, | |
}, | |
name: { | |
type: Sequelize.STRING, | |
}, | |
password: { | |
type: Sequelize.STRING, | |
allowNull: false, | |
}, | |
}); | |
export default User; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment