Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // directly export the model
- module.exports = (sequelize, DataTypes) => {
- // define the model
- const User = sequelize.define("user", {
- username: DataTypes.STRING,
- password: DataTypes.STRING,
- premium: DataTypes.BOOLEAN,
- token: DataTypes.TEXT
- });
- // return the model
- return User;
- };
Add Comment
Please, Sign In to add comment