{"size": 506, "ext": "js", "max_stars_repo_path": "node/sql-node/src/database/seeders/20210730134434-users.js", "max_stars_repo_name": "makeitrealcamp/top-v9", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "node/sql-node/src/database/seeders/20210730134434-users.js", "max_issues_repo_name": "makeitrealcamp/top-v9", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "node/sql-node/src/database/seeders/20210730134434-users.js", "max_forks_repo_name": "makeitrealcamp/top-v9", "max_forks_repo_forks_event_min_datetime": "2021-05-27T22:42:44.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-01T04:16:44.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 22.0, "max_line_length": 55, "alphanum_fraction": 0.581027668}
'use strict';

const faker = require('faker')

module.exports = {
  up: async (queryInterface, Sequelize) => {
    const users = Array.from({ length: 500 }, () => {
      return {
        name: faker.name.firstName(),
        email: faker.internet.email(),
        createdAt: new Date(),
        updatedAt: new Date(),
      }
    })

    await queryInterface.bulkInsert('users', users, {})
  },

  down: async (queryInterface, Sequelize) => {
    await queryInterface.bulkDelete('users', null, {})
  }
};
