const bcrypt = require("bcryptjs"); /** @type {import('sequelize-cli').Migration} */ module.exports = { async up (queryInterface, Sequelize) { return queryInterface.bulkInsert('Users', [{ firstName: 'Nolan', lastName: 'Ryan', dateOfBirth: new Date(1947, 1, 31), email: 'ryan.nolan@bullpen.com', password: bcrypt.hashSync('nolan', 8), createdAt: new Date(), updatedAt: new Date(), }]); }, async down (queryInterface, Sequelize) { return queryInterface.dropTable('Users'); } };