text: 'use strict';
  const faker = require('faker');
  const bcrypt = require('bcryptjs');
  
  module.exports = {
    up: (queryInterface, Sequelize) => {
      return queryInterface.bulkInsert('Users',
      [
        {
          email: 'demo@user.io',
          username: 'demo',
          hashedPassword: bcrypt.hashSync('password')
        },
        {
          email: faker.internet.email(),
          username: 'FakeUser1',
          hashedPassword: bcrypt.hashSync(faker.internet.password())
        }
      ], {});
    },
  
  
    down: (queryInterface, Sequelize) => {
      const Op = Sequelize.Op;
      return queryInterface.bulkDelete('Users', {
        username: { [Op.in]: ['demo', 'FakeUser1'] }
      }, {});
    }
  };
  