'use strict';

module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.bulkInsert('Inventories', [
      {
        productId: 1,
        productVariantId: 1,
        storeId: 1,
        quantityOnHand: 100,
        quantityReserved: 10,
        quantityAvailable: 90,
        lastRestocked: new Date(),
        createdAt: new Date(),
        updatedAt: new Date()
      },
      {
        productId: 2,
        productVariantId: 3,
        storeId: 1,
        quantityOnHand: 50,
        quantityReserved: 5,
        quantityAvailable: 45,
        lastRestocked: new Date(),
        createdAt: new Date(),
        updatedAt: new Date()
      },
      {
        productId: 3,
        productVariantId: 5,
        storeId: 1,
        quantityOnHand: 200,
        quantityReserved: 20,
        quantityAvailable: 180,
        lastRestocked: new Date(),
        createdAt: new Date(),
        updatedAt: new Date()
      }
    ]);
  },

  async down(queryInterface, Sequelize) {
    await queryInterface.bulkDelete('Inventories', null, {});
  }
};
