'use strict';

module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.bulkInsert('stores', [
      {
        name: 'Main Store',
        code: 'MAIN001',
        address: '123 Main Street',
        city: 'Nairobi',
        state: 'Nairobi County',
        country: 'Kenya',
        postalCode: '00100',
        phone: '+254700000000',
        email: 'main@store.com',
        taxId: 'KRA123456',
        currency: 'KES',
        timezone: 'Africa/Nairobi',
        isActive: true,
        createdAt: new Date(),
        updatedAt: new Date()
      },
      {
        name: 'Branch Store',
        code: 'BR001',
        address: '456 Branch Avenue',
        city: 'Mombasa',
        state: 'Mombasa County',
        country: 'Kenya',
        postalCode: '80100',
        phone: '+254711111111',
        email: 'branch@store.com',
        taxId: 'KRA654321',
        currency: 'KES',
        timezone: 'Africa/Nairobi',
        isActive: true,
        createdAt: new Date(),
        updatedAt: new Date()
      }
    ]);
  },

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