text: 'use strict';
  const { faker } = require('@faker-js/faker');
  
  module.exports = {
    async up(queryInterface, Sequelize) {
      /**
       * Add seed commands here.
       *
       * Example:
       * await queryInterface.bulkInsert('People', [{
       *   name: 'John Doe',
       *   isBetaMember: false
       * }], {});
       */
  
      const categories = new Array(30).fill(null).map((category) => {
        return {
          name: faker.commerce.productName(),
        };
      });
  
      return await queryInterface.bulkInsert('categories', categories);
    },
  
    async down(queryInterface, Sequelize) {
      /**
       * Add commands to revert seed here.
       *
       * Example:
       * await queryInterface.bulkDelete('People', null, {});
       */
  
      return await queryInterface.bulkDelete('categories', null, {});
    },
  };
  