Guest User

Untitled

a guest
Jul 13th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. // directly export the model
  2. module.exports = (sequelize, DataTypes) => {
  3. // define the model
  4. const User = sequelize.define("user", {
  5. username: DataTypes.STRING,
  6. password: DataTypes.STRING,
  7. premium: DataTypes.BOOLEAN,
  8. token: DataTypes.TEXT
  9. });
  10.  
  11. // return the model
  12. return User;
  13. };
Add Comment
Please, Sign In to add comment