Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. const Sequelize = require('sequelize');
  2. const db = require('../config/database');
  3.  
  4. const User = db.define('users', {
  5. name: {
  6. type: Sequelize.STRING,
  7. allowNull: false
  8. },
  9. email: {
  10. type: Sequelize.STRING,
  11. allowNull: false,
  12. unique: true
  13. },
  14. password: {
  15. type: Sequelize.STRING,
  16. allowNull: false
  17. }
  18. });
  19.  
  20. module.exports = User;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement