Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
'use strict';
const fake = require('faker');
module.exports = {
up: async (queryInterface, Sequelize) => {
let users = [];
for(let i=0; i<=100; i++){
createdAt:new Date(),
updatedAt:new Date(),
await queryInterface.bulkInsert('Users',users, {});
down: async (queryInterface, Sequelize) => {
await queryInterface.bulkDelete('Users', null, {});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment