'use strict';

/** Seeder: create PEVEETA company (id = 2)
 *  Adds a company record required by PEVEETA materials seeder.
 */
module.exports = {
  up: async (queryInterface, Sequelize) => {
    const now = new Date();
    return queryInterface.bulkInsert('company', [
      {
        id: 2,
        name: 'PEVEETA',
        code: 'PEVEETA',
        status: 'ACTIVE',
        created_at: now,
        updated_at: now,
      },
    ], {});
  },

  down: async (queryInterface, Sequelize) => {
    return queryInterface.bulkDelete('company', { id: 2 }, {});
  }
};


