Guest User

Untitled

a guest
Dec 13th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. const connection = require('../Connection');
  2. const Sequelize = require('sequelize');
  3.  
  4. const User = connection.Sequelize.define('user', {
  5. id: {
  6. type: Sequelize.INTEGER, primaryKey: true
  7. },
  8. username: {
  9. type: Sequelize.STRING
  10. },
  11. password: {
  12. type: Sequelize.STRING
  13. }
  14. }, {
  15. timestamps: true,
  16. createdAt: 'created_at',
  17. updatedAt: 'updated_at',
  18. tableName: 'mvw_user'
  19. });
  20.  
  21. module.exports = User;
Add Comment
Please, Sign In to add comment